[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#714877: apt: Please support an apt-get update for a single repository only



On Wed, 3 Jul 2013, David Kalnischkies wrote:

Your problem is the cleanup of "unused" files and the solution should be:
-o APT::List-Cleanup=0

In sofar you can implement the requested feature without changing apt code:
-o APT::List-Cleanup=0
-o Dir::Etc::sourcelist="/dev/null"
-o Dir::Etc::sourceparts="/directory/with/just/a/few/sources.list.d/files/";
(or the other way around with just one file; I remember writing a patch for
behaving nicely if a directory is /dev/null – not sure what version this is
in though currently, but wheezy should have it at least)

Feel free to use this for sbuild as it will work in any APT version.

Oh man, this is fantastic! Updating just a local apt repository (made with dpkg-scanpackages) takes a fraction of a second. I'll use this for my sbuild branch, and send in a patch to use this for sbuild's current implementation.

I'd still like an actual feature for this, so that the syntax is more obvious, but I guess sbuild is running this inside the chroot and won't be able to rely on it. If you'd prefer not to add this as a feature, I'd be perfectly happy with documentation to this effect.

Thanks for the tip!

--
Geoffrey Thomas
gthomas@mokafive.com

Reply to: