[Merge] lp:~evarlast/software-properties/support-update into lp:software-properties

Jay R. Wren jay.wren at canonical.com
Mon Jun 1 13:30:13 UTC 2015


The proposal to merge lp:~evarlast/software-properties/support-update into lp:software-properties has been updated.

Description changed to:

Add the -u, --update option to add-apt-repository to automatically update the apt cache.

By using apt.cache.Cache().update(sources_list=) only the newly added source is downloaded. The update method automatically sets and resets options so that other sources are not removed. This is similar to running this command:

apt-get update -o Dir::Etc::sourcelist="sources.list.d/${source}" \
        -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"

The benefit is that using -u is faster (potentially MUCH faster) than downloading and building package cache for all sources.


For more details, see:
https://code.launchpad.net/~evarlast/software-properties/support-update/+merge/260642
-- 
Your team Ubuntu Core Development Team is requested to review the proposed merge of lp:~evarlast/software-properties/support-update into lp:software-properties.



More information about the Ubuntu-reviews mailing list