Rev 398: search for tar on path rather than hardcoding it. in http://people.canonical.com/~robertc/baz2.0/plugins/builddeb/trunk

Robert Collins robertc at robertcollins.net
Mon Feb 1 06:02:52 GMT 2010


At http://people.canonical.com/~robertc/baz2.0/plugins/builddeb/trunk

------------------------------------------------------------
revno: 398
revision-id: robertc at robertcollins.net-20100201060248-7c1aqtpcrnedu5ko
parent: jelmer at samba.org-20100129093854-0utrrowd31gk9iz0
fixes bug(s): https://launchpad.net/bugs/507270
committer: Robert Collins <robertc at robertcollins.net>
branch nick: trunk
timestamp: Mon 2010-02-01 17:02:48 +1100
message:
  search for tar on path rather than hardcoding it.
=== modified file 'import_dsc.py'
--- a/import_dsc.py	2009-12-18 12:58:41 +0000
+++ b/import_dsc.py	2010-02-01 06:02:48 +0000
@@ -1590,7 +1590,7 @@
     def _extract_tarball_to_tempdir(self, tarball_filename):
         tempdir = tempfile.mkdtemp()
         try:
-            proc = Popen(["/usr/bin/tar", "xzf", tarball_filename, "-C",
+            proc = Popen(["tar", "xzf", tarball_filename, "-C",
                     tempdir, "--strip-components", "1"],
                     preexec_fn=subprocess_setup)
             proc.communicate()




More information about the bazaar-commits mailing list