[csw-devel] SF.net SVN: gar:[8767] csw/mgar/gar/v2/lib/python/submit_to_newpkgs.py

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Tue Feb 23 16:49:41 CET 2010


Revision: 8767
          http://gar.svn.sourceforge.net/gar/?rev=8767&view=rev
Author:   wahwah
Date:     2010-02-23 15:49:33 +0000 (Tue, 23 Feb 2010)

Log Message:
-----------
mGAR v2: submitpkg, a better error message when rsync is missing.

Modified Paths:
--------------
    csw/mgar/gar/v2/lib/python/submit_to_newpkgs.py

Modified: csw/mgar/gar/v2/lib/python/submit_to_newpkgs.py
===================================================================
--- csw/mgar/gar/v2/lib/python/submit_to_newpkgs.py	2010-02-23 15:27:26 UTC (rev 8766)
+++ csw/mgar/gar/v2/lib/python/submit_to_newpkgs.py	2010-02-23 15:49:33 UTC (rev 8767)
@@ -132,7 +132,11 @@
   # TODO(maciej): rsync only once
   args = ["rsync", "-v"] + files_to_rsync + [dst_arg]
   logging.debug(args)
-  ret = subprocess.call(args)
+  try:
+    ret = subprocess.call(args)
+  except OSError, e:
+    raise PackageSubmissionError("Couldn't run %s, is the binary "
+                                 "in the path? %s" % (args, e))
   if ret:
     msg = "Copying %s to %s has failed." % (p, dst_arg)
     logging.error(msg)


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list