Ticket #68 (new enhancement)

Opened 19 months ago

Last modified 17 months ago

Deltup support

Reported by: eternaleye@… Owned by: ciaranm
Priority: IfSomeoneSendsAPatch Milestone:
Component: clients/paludis Version: 0.16.2
Keywords: Cc:
Blocked By: Blocking:
Distribution:

Description

Fetcher and companion executable to support deltup.

Attachments

dohttp (2.3 kB) - added by eternaleye@… 19 months ago.
dohttp fetcher which references a modified getdelta.sh
getdelta-paludis.sh (29.5 kB) - added by eternaleye@… 19 months ago.
A modified getdelta.sh script that plays nice with paludis and --safe-resume
dohttp.2 (2.3 kB) - added by eternaleye@… 19 months ago.
1st update: Can ANYONE tell me why the heck paludis keeps barfing line 46?!? kwrite's code folding likes it.
dohttp.3 (2.3 kB) - added by eternaleye@… 19 months ago.
2nd update, bug free. As of now, getdelta-paludis.sh is not quite working though
dohttp.4 (1.7 kB) - added by eternaleye@… 17 months ago.
Finally, a WORKING one!
getdelta-paludis.2.sh (29.7 kB) - added by eternaleye@… 17 months ago.
A getdelta.sh that respects (as best I could) safe-resume
dohttp.5 (2.6 kB) - added by meka 15 months ago.
Added USE_GETDELTA. Currently, gentdelta downloads everything to /usr/portage/distfiles, so sync trough tar+http doesn't work. Put something like if [ ! -z "${PN}"]; then; export USE_GETDELTA="yes"; fi to fix this.
dohttp.6 (2.7 kB) - added by meka 14 months ago.
-z $PN checking moved to dohttp. All you have to do is set USE_GETDELTA in /etc/paludis/bashrc
dohttp.7 (3.7 kB) - added by ony 8 months ago.
added $GETDELTA_MIN_SIZE (in bytes) to allow skipping deltup on small files

Change History

Changed 19 months ago by eternaleye@…

dohttp fetcher which references a modified getdelta.sh

Changed 19 months ago by eternaleye@…

A modified getdelta.sh script that plays nice with paludis and --safe-resume

Changed 19 months ago by anonymous

NOTE: This is controlled by the environment variable $DELTUP. If the variable is unset, it fetches normally with wget. If it is set, it must be set to the absolute pathname of the modified getdelta script. The script can reside wherever you like.

Changed 19 months ago by eternaleye@…

line 856 in getdelta-paludis.sh needs -O (capital o) between $FETCH and $DEST_FILE

Changed 19 months ago by eternaleye@…

line 462 in getdelta-paludis.sh needs .-PARTIAL- appended to it

Changed 19 months ago by eternaleye@…

1st update: Can ANYONE tell me why the heck paludis keeps barfing line 46?!? kwrite's code folding likes it.

Changed 19 months ago by eternaleye@…

2nd update, bug free. As of now, getdelta-paludis.sh is not quite working though

Changed 17 months ago by eternaleye@…

Turns out I was going at it all wrong. Uploading WORKING stuff now!

Changed 17 months ago by eternaleye@…

Finally, a WORKING one!

Changed 17 months ago by eternaleye@…

A getdelta.sh that respects (as best I could) safe-resume

Changed 17 months ago by eternaleye@…

Only two remaining kinks: 1.) It fails to open the log file. May be due to me running it via sudo from a non-root account. Setting the logfile to /dev/null makes it stop complaining (but don't forget to turn off log-file deletion if you do that). 2.) It stops trying if it gets a DELTUP-QUEUED, unsure as to why. It complains about TIMEOUT being exceeded, which is odd as I never modified it. Also, I moved the config dir for the safe-resume-aware one to /etc/deltup-paludis/, so that it can be configured separately from the non-safe-resume-aware one. Built from version 7.0 of getdelta and version 0.20.1 of paludis.

Changed 15 months ago by meka

Added USE_GETDELTA. Currently, gentdelta downloads everything to /usr/portage/distfiles, so sync trough tar+http doesn't work. Put something like if [ ! -z "${PN}"]; then; export USE_GETDELTA="yes"; fi to fix this.

Changed 14 months ago by meka

-z $PN checking moved to dohttp. All you have to do is set USE_GETDELTA in /etc/paludis/bashrc

Changed 8 months ago by ony

added $GETDELTA_MIN_SIZE (in bytes) to allow skipping deltup on small files

Note: See TracTickets for help on using tickets.