Wrong md5 checksum when reuploading modified source #1
Labels
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: OSS/slackbuilder#1
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Consider a package where we download the source, extract the files, do some modifications, archive the files again and upload it to our storage.
The checksum in the updated .info file is the checksum from the original archive before the modifications.
Actually the download function should be probabliy rewritten for this case. We download a file and pipe it to
tar -x
directly (without saving the archive on disk). Then we do modifications and then dotar -c
and pipe the output to 2 streams: file and hash function.Instead of
tar
the tar package can be used. The package reads the archives from the disk or uses lazy IO with lazy ByteString to perform extraction. I'll have to find out whether reading a HTTP request works lazily. Otherwise the easiest way is just to save the file on the drive as cache.Call stack:
reuploadWithTemplate
->downloadWithTemplate
->download
.