[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



Hi Geoffrey,

On Wed, Jul 3, 2013 at 8:36 PM, Geoffrey Thomas <gthomas@mokafive.com> wrote:
> I tried writing a patch for this, but the most obvious approach ended up
> with apt thinking that one sources.list.d file was the _only_ one configured
> (and forgetting all other repositories). Patch is attached because why not;
> I haven't had time to look into making it work properly, yet, but might end
> up doing so eventually.

(Disclaimer: I haven't tried the patch yet nor did I have made up my mind
 about the feature itself - running a bit short on time currently)


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.


Best regards

David Kalnischkies


Reply to: