If you want to recreate package with the same hash as original, you better not to use tar --delete.
What if I want to use --delete?
You can still get the same hash in theory by repacking original package into a package that excludes "removed" files from tar's content. Repacked package's hash should match recreated package's hash that we get from the transpkg.
Why transpkg cant support tar --delete
We dont know how to read deleted files nor see where exactly they were marked as deleted in the tar's content list.
Thus, it is impossible to implement this feature without tar experts.
Note: We cant be sure where files were before getting deleted and where they got marked as deleted. This information is crucial and should be applied keeping the order to get the hash right.
Related feature was issued here #3 and cant be implemented at the moment, as we dont know how to read "deleted" files and cant see the "markers that remove files".
If you want to recreate package with the same hash as original, you better not to use tar --delete.
# What if I want to use --delete?
You can still get the same hash in theory by repacking original package into a package that excludes "removed" files from tar's content. Repacked package's hash should match recreated package's hash that we get from the transpkg.
# Why transpkg cant support tar --delete
We dont know how to read deleted files nor see where exactly they were marked as deleted in the tar's content list.
Thus, it is impossible to implement this feature without tar experts.
Note: We cant be sure where files were before getting deleted and where they got marked as deleted. This information is crucial and should be applied keeping the order to get the hash right.
Related feature was issued here #3 and cant be implemented at the moment, as we dont know how to read "deleted" files and cant see the "markers that remove files".