[pacman-dev] [PATCH] Add new SharedPkgCache option.

Dan McGee dpmcgee at gmail.com
Mon Mar 10 20:44:23 EDT 2008


2008/2/19 Nagy Gabor <ngaba at bibl.u-szeged.hu>:
> > On Mon, Feb 18, 2008 at 10:06:35AM +0200, Roman Kyrylych wrote:
>  > >
>  > > Not pointless at all, Xavier's solution will work on majority of
>  > > configurations with a shared cache (that have the same set of repos
>  > > enabled).
>  > >
>  > > It's useful for users that don't use a shared cache, but want to keep
>  > > non-installed but up-to-date packages in cache (e.g. me :-P) - there
>  > > are some valid reasons for doing this.
>  > >
>  >
>  > Ah. Then the SharedPkgCache name is not so great :/
>  > I also thought of "CleanOutdated".
>  >
>  +1

OK, after thinking about this, how about something like

CleanPackages = Installed (default if nothing specified, look at localdb)
CleanPackages = UpToDate ('shared package cache', look at syncdb)

Problem is those specs are reverse from how they sound- we are keeping
and not cleaning what was specified.

I'm saying do it this way rather than a boolean option so when some
smart guy on the list comes up with a date-based cleaning solution or
something, we can also accommodate for that.

Hmm:
CleanMethod = {KeepInstalled, KeepCurrent, KeepRecent} ?

-Dan




More information about the pacman-dev mailing list