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

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Tue Mar 29 10:27:33 CEST 2011


Revision: 14006
          http://gar.svn.sourceforge.net/gar/?rev=14006&view=rev
Author:   wahwah
Date:     2011-03-29 08:27:33 +0000 (Tue, 29 Mar 2011)

Log Message:
-----------
csw-upload-pkg: Warn if checkpkg not available

If the checkpkg executable is not found, display a helpful error message.

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-03-29 07:52:08 UTC (rev 14005)
+++ csw/mgar/gar/v2/lib/python/csw_upload_pkg.py	2011-03-29 08:27:33 UTC (rev 14006)
@@ -112,6 +112,10 @@
     checkpkg_sets = self._CheckpkgSets(planned_modifications)
     bin_dir = os.path.dirname(__file__)
     checkpkg_executable = os.path.join(bin_dir, "checkpkg")
+    assert os.path.exists(checkpkg_executable), (
+        "Could not find %s. Make sure that the checkpkg executable is "
+        "available \n"
+        "from the same directory as csw-upload-pkg." % checkpkg_executable)
     checks_failed_for_catalogs = []
     args_by_cat = {}
     for arch, osrel in checkpkg_sets:


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