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

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Mon Aug 29 10:52:24 CEST 2011


Revision: 15458
          http://gar.svn.sourceforge.net/gar/?rev=15458&view=rev
Author:   wahwah
Date:     2011-08-29 08:52:24 +0000 (Mon, 29 Aug 2011)
Log Message:
-----------
csw-upload-pkg: Pass --debug to pkgdb

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

Modified: csw/mgar/gar/v2/lib/python/csw_upload_pkg.py
===================================================================
--- csw/mgar/gar/v2/lib/python/csw_upload_pkg.py	2011-08-29 08:51:07 UTC (rev 15457)
+++ csw/mgar/gar/v2/lib/python/csw_upload_pkg.py	2011-08-29 08:52:24 UTC (rev 15458)
@@ -109,7 +109,10 @@
         "Could not find %s. Make sure that the pkgdb executable is "
         "available \n"
         "from the same directory as csw-upload-pkg." % pkgdb_executable)
-    args = [pkgdb_executable, "importpkg", filename]
+    args = [pkgdb_executable, "importpkg"]
+    if self.debug:
+      args.append("--debug")
+    args.append(filename)
     ret = subprocess.call(args)
     if ret:
       raise OSError("An error occurred when running %s." % args)

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