Ubuntu Pastebin

Paste from Daniel Holbach at Thu, 4 Feb 2016 13:46:22 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
diff --git a/snapcraft/repo.py b/snapcraft/repo.py
index 8717488..543fd10 100644
--- a/snapcraft/repo.py
+++ b/snapcraft/repo.py
@@ -255,6 +255,7 @@ def _setup_apt_cache(rootdir, sources, local=False):
         progress._width = 0
 
     apt_cache = apt.Cache(rootdir=rootdir, memonly=True)
+    apt.apt_pkg.config.clear("APT::Update::Post-Invoke-Success")
     apt_cache.update(fetch_progress=progress, sources_list=srcfile)
     apt_cache.open()
 
Download as text