Repository: ambari Updated Branches: refs/heads/trunk e585d2391 -> c7df7bd0b
Ambari-10677. apt-get update command updates all list files even if it is expected to update only one Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/c7df7bd0 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/c7df7bd0 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/c7df7bd0 Branch: refs/heads/trunk Commit: c7df7bd0b977af5490bd9b60bad5fa78f8dadc2f Parents: e585d23 Author: Sumit Mohanty <[email protected]> Authored: Thu Apr 23 06:48:50 2015 -0700 Committer: Sumit Mohanty <[email protected]> Committed: Thu Apr 23 06:48:50 2015 -0700 ---------------------------------------------------------------------- .../python/resource_management/libraries/providers/repository.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/c7df7bd0/ambari-common/src/main/python/resource_management/libraries/providers/repository.py ---------------------------------------------------------------------- diff --git a/ambari-common/src/main/python/resource_management/libraries/providers/repository.py b/ambari-common/src/main/python/resource_management/libraries/providers/repository.py index 94f057e..85ad83e 100644 --- a/ambari-common/src/main/python/resource_management/libraries/providers/repository.py +++ b/ambari-common/src/main/python/resource_management/libraries/providers/repository.py @@ -67,7 +67,7 @@ def get_repo_dir(): class UbuntuRepositoryProvider(Provider): package_type = "deb" repo_dir = "/etc/apt/sources.list.d" - update_cmd = ['apt-get', 'update', '-qq', '-o', 'Dir::Etc::sourcelist=sources.list.d/{repo_file_name}', '-o', 'APT::Get::List-Cleanup=0'] + update_cmd = ['apt-get', 'update', '-qq', '-o', 'Dir::Etc::sourcelist=sources.list.d/{repo_file_name}', '-o', 'Dir::Etc::sourceparts=-', '-o', 'APT::Get::List-Cleanup=0'] missing_pkey_regex = "The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ([A-Z0-9]+)" add_pkey_cmd = "apt-key adv --recv-keys --keyserver keyserver.ubuntu.com {pkey}"
