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

Jay R. Wren jay.wren at canonical.com
Sat May 30 00:49:23 UTC 2015


Jay R. Wren has proposed merging lp:~evarlast/software-properties/support-update into lp:software-properties.

Requested reviews:
  Ubuntu Core Development Team (ubuntu-core-dev)

For more details, see:
https://code.launchpad.net/~evarlast/software-properties/support-update/+merge/260640

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.

-- 
The attached diff has been truncated due to its size.
Your team Ubuntu Core Development Team is requested to review the proposed merge of lp:~evarlast/software-properties/support-update into lp:software-properties.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: review-diff.txt
Type: text/x-diff
Size: 524288 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-reviews/attachments/20150530/707d11a5/attachment-0001.diff>


More information about the Ubuntu-reviews mailing list