Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   ArchLinux Pacman Development (http://www.linux-archive.org/archlinux-pacman-development/)
-   -   Add delta creation to repo-add. (http://www.linux-archive.org/archlinux-pacman-development/56906-add-delta-creation-repo-add.html)

Nathan Jones 02-16-2008 12:34 AM

Add delta creation to repo-add.
 
For the first patch, I added the -n flag to gzip in order to prevent the
md5sum problem. The apply-delta script is not as efficient as it could
be. There is an extra gunzip+gzip step that could be avoided if we
create a delta on the .tar rather than the .tar.gz. Doing so would
complicate makepkg a bit, so I stuck with the extra step.

For the second patch, I created a second function, create_xdelta_latest,
which creates a delta for the latest package with a given package name.
I did this because otherwise a delta would be created for every package
given on the command line which is annoying for me because I use
*.pkg.tar.gz.

Problems:
* gzip upgrade could produce different md5sums
- could have had the problem before if a zlib upgrade did the same thing
* all delta files that currently exist will not work (probably not a problem)

_______________________________________________
pacman-dev mailing list
pacman-dev@archlinux.org
http://archlinux.org/mailman/listinfo/pacman-dev


All times are GMT. The time now is 10:09 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.