[pacman-dev] Removing deltas from repos - Was: Allow package to display a brief message before sync install

Marc - A. Dahlhaus [ Administration | Westermann GmbH ] mad at wol.de
Wed Sep 16 11:40:30 EDT 2009


Am Mittwoch, den 16.09.2009, 16:18 +1000 schrieb Allan McRae:
> Marc - A. Dahlhaus [ Administration | Westermann GmbH ] wrote:
> > Am Dienstag, den 15.09.2009, 23:14 +1000 schrieb Allan McRae:
> >   
> >> repo-remove... but I am assuming you mean some automated tool to remove 
> >> "useless" deltas?  Not yet, and I doubt there will be until someone 
> >> starts using deltas in a repo and finds the need to code one.
> >>     
> >
> > Well, i rise my hand then and look into it as we use deltas quite
> > heavily lately here.
> >   
> 
> That would be great.  From memory, pacman does not use a chain of deltas 
> if the total download is greater than 90% of just downloading the full 
> package.  That is probably a good criteria to use to in order to decide 
> which deltas to remove.

Actually first i got confused as repo-remove is documented to take a
pkgname as param to remove the whole package (including deltas) from the
repo. To use the deltapackage-filename as option to remove only that
delta doesn't fitted well into that documentation. I'll try to add this
to the man page and usage outputs during my work on this topic...

I'd like to add a -d|--delta option to repo-add to create the delta
between the current package and the one to be added.

For option parsing i plan to make usage of getopt (it is already used by
makepkg so it shouldn't be a problem).

I've also thought about adding a -c|--cleanup option to repo-add and
repo-remove that would delete unused files from the repo directory.
If booth -d and -c are given than it should remove the "unused" 
deltas from the repo also and remove the corresponding files.

But as i'm unsure if adding on option to do automatic removal of package
files is really a good idea for upstream in the first place, i think
i'll do a combined creation, adding and cleanup of "unused" deltas task
with -d param for repo-add first.

What do you think about it?

Marc



More information about the pacman-dev mailing list