Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 63525 - Patch to the for the new deltup alternative by blackpengiun
Summary: Patch to the for the new deltup alternative by blackpengiun
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Third-Party Tools (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage Tools Team
Depends on:
Reported: 2004-09-10 02:43 UTC by Pkunk
Modified: 2004-10-06 02:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---

Updated script (,16.80 KB, application/octet-stream)
2004-09-10 02:45 UTC, Pkunk

Note You need to log in before you can comment on or make changes to this bug.
Description Pkunk 2004-09-10 02:43:31 UTC
This is a patch for the very good Deltup alternative by blackpengiun @

Suppose the existing file which is to be upgrade is corrupt or incomplete , will still try to download a dtu patch for it , and then fail after going through the download with the "original file is corrupt" message. I recently had download an 8 meg dtu and after downloading it told "original file is corrupt" and proceeded to download the new file.

I have implemented some local checks into the script which check the digest files if availabe , and if not test the tarball for corruption and then if the file is corrupt , NOT download the dtu , but instead ask the user to delete the old file and retry.

Firstly , please update your /etc/make.conf with

FETCHCOMMAND="/usr/bin/ \${URI} \${FILESDIR} \${PF}"

Then download the file attached below and place it in /usr/bin/ . If you place it in any other folder then change the FETCHCOMMAND accordingly

Reproducible: Always
Steps to Reproduce:
1. Try to download an updated tarball , when corrupted/incomplete old version files exists in distfiles/
2.deltup will not check if the "best canidate" for update is already corrupt and download the DTU
3.deltup will then error out because the original file is corrupt after downloading the .dtu
Comment 1 Pkunk 2004-09-10 02:45:10 UTC
Created attachment 39292 [details]
Updated script

Place this updated script in /usr/bin  and chmod 775 it
Comment 2 Nicolai Lissner 2004-09-11 19:34:15 UTC
Just close this bug - Pkunk's patch is for a tool not in portage.

I've released a new version of incl. Pkunk's suggestion.

However this is not the right place to discuss problems or enhancements of tools not in the portage tree.

Pkunk, I cannot close it - but as the reporter you can do.
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2004-10-06 02:47:29 UTC
Not out bug