[PATCH 2/3] devel: add support for deb with xz

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This adds basic support for debian packages using the xz compression
algorithm.

Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx>
---
 lib/bpar.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/bpar.py b/lib/bpar.py
index dd37a6c..5e378d3 100644
--- a/lib/bpar.py
+++ b/lib/bpar.py
@@ -7,9 +7,9 @@ class ExecutionError(ArError):
         self.error_code = errcode
 
 def print_data(input_file, out_file, tree=None):
-    cmd = ['ar', 'p', input_file, 'data.tar.gz']
+    cmd = ['ar', 'p', input_file, 'data.tar.gz', 'data.tar.xz']
     process = subprocess.Popen(cmd,
-                               stdout=out_file, stderr=subprocess.STDOUT,
+                               stdout=out_file,
                                close_fds=True, universal_newlines=True, cwd=tree)
     stdout = process.communicate()[0]
     process.wait()
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe backports" in



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux