[zpkg] SVN: zpkgtools/trunk/zpkgtools/app.py appearantly some tar
programs will not promise to return 2 for unrecognized
Fred L. Drake, Jr.
fdrake at gmail.com
Mon Sep 19 14:20:21 EDT 2005
Log message for revision 38526:
appearantly some tar programs will not promise to return 2 for unrecognized
command line options; thanks for Brian Sutherland for researching that
Changed:
U zpkgtools/trunk/zpkgtools/app.py
-=-
Modified: zpkgtools/trunk/zpkgtools/app.py
===================================================================
--- zpkgtools/trunk/zpkgtools/app.py 2005-09-19 18:18:23 UTC (rev 38525)
+++ zpkgtools/trunk/zpkgtools/app.py 2005-09-19 18:20:21 UTC (rev 38526)
@@ -335,7 +335,7 @@
runlog.report_command(" ".join(cmdline1))
try:
rc = os.spawnv(os.P_WAIT, cmdpath, cmdline1)
- if os.WIFEXITED(rc) and os.WEXITSTATUS(rc) == 2:
+ if os.WIFEXITED(rc) and os.WEXITSTATUS(rc) > 0:
# didn't like the command line; maybe not GNU tar?
if os.path.exists(self.target_file):
os.unlink(self.target_file)
More information about the zpkg
mailing list