[Piuparts-commits] [SCM] piuparts git repository branch, master, updated. 0.51

Holger Levsen holger at layer-acht.org
Wed May 15 10:10:20 UTC 2013


The following commit has been merged in the master branch:
commit 09f9a90e93f9a9e5606d1568b0e67b7f2826b679
Author: Andreas Beckmann <anbe at debian.org>
Date:   Tue May 14 19:38:05 2013 +0200

    p: disable using pdiffs
    
    pdiffs cost a lot of cpu in order to save some bandwidth
    that's useless with a local mirror or proxy
    
    Signed-off-by: Andreas Beckmann <anbe at debian.org>

diff --git a/debian/changelog b/debian/changelog
index 7b642e1..d4d2867 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,8 @@ piuparts (0.51) UNRELEASED; urgency=low
       package to be tested via --extra-old-packages.
     - Add --arch <arch> option to run the test for the requested instead of
       the default architecture.
+    - Disable using PDiffs in order to save CPU instead of bandwidth to a
+      local mirror/proxy.  (Closes: #708241)
   * piuparts.conf:
     - New global settings:
       + slave-count
diff --git a/piuparts.py b/piuparts.py
index 88761c9..19f4e95 100644
--- a/piuparts.py
+++ b/piuparts.py
@@ -961,6 +961,7 @@ class Chroot:
         lines.append('APT::Install-Recommends "%d";\n' % int(settings.install_recommends))
         lines.append('APT::Install-Suggests "0";\n')
         lines.append('APT::Get::AllowUnauthenticated "%s";\n' % settings.apt_unauthenticated)
+        lines.append('APT::Acquire::PDiffs "false";\n')
         if settings.proxy:
             proxy = settings.proxy
         elif "http_proxy" in os.environ:

-- 
piuparts git repository



More information about the Piuparts-commits mailing list