[Piuparts-commits] [piuparts] 01/01: p: create piuparts-depends-dummy.deb with gzip compression

Holger Levsen holger at moszumanska.debian.org
Tue Jan 28 23:50:51 UTC 2014


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch develop
in repository piuparts.

commit ffe37cda7f7432021ac94daf493e53b1870a1831
Author: Andreas Beckmann <anbe at debian.org>
Date:   Tue Jan 28 11:25:18 2014 +0100

    p: create piuparts-depends-dummy.deb with gzip compression
    
    - older dpkg does not understand data.tar.xz
    - dump the metapackage control file
    
    Signed-off-by: Andreas Beckmann <anbe at debian.org>
---
 debian/changelog | 2 ++
 piuparts.py      | 5 +++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 97edb79..f22f696 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -31,6 +31,8 @@ piuparts (0.57) UNRELEASED; urgency=low
       + /etc/group.org
       + /etc/passwd.org
       + /etc/shadow.org
+    - Create piuparts-depends-dummy.deb with gzip compression for
+      installability with older dpkg versions.
   * piupartslib/packagesdb.py:
     - get_best_package_state(): New method that considers successfully tested
       providers of a virtual package if the real package of the same name
diff --git a/piuparts.py b/piuparts.py
index 3669afe..2ecbf92 100644
--- a/piuparts.py
+++ b/piuparts.py
@@ -575,9 +575,10 @@ def make_metapackage(name, depends, conflicts):
     create_file(os.path.join(tmpdir, name, 'DEBIAN', 'control'),
                 control.dump())
 
-    run(['dpkg-deb', '-b', '--nocheck', os.path.join(tmpdir, name)])
+    logging.debug("metapackage:\n" + indent_string(control.dump()))
+    run(['dpkg-deb', '-b', '-Zgzip', '--nocheck', os.path.join(tmpdir, name)])
     dont_do_on_panic(panic_handler_id)
-    return os.path.join(tmpdir, name) + '.deb'
+    return os.path.join(tmpdir, name + '.deb')
 
 
 def split_path(pathname):

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git



More information about the Piuparts-commits mailing list