[csw-devel] SF.net SVN: gar:[14118] csw/mgar/gar/v2/lib/python/csw_upload_pkg.py
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Sun Apr 10 12:24:04 CEST 2011
Revision: 14118
http://gar.svn.sourceforge.net/gar/?rev=14118&view=rev
Author: wahwah
Date: 2011-04-10 10:24:04 +0000 (Sun, 10 Apr 2011)
Log Message:
-----------
csw-upload-pkg: no parameters given, print usage
If no arguments are given, print usage.
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-04-10 10:23:30 UTC (rev 14117)
+++ csw/mgar/gar/v2/lib/python/csw_upload_pkg.py 2011-04-10 10:24:04 UTC (rev 14118)
@@ -20,6 +20,7 @@
import struct_util
import subprocess
import file_set_checker
+import sys
BASE_URL = "http://buildfarm.opencsw.org"
@@ -517,6 +518,10 @@
if os_release:
os_release = struct_util.OsReleaseToLong(os_release)
+ if not args:
+ parser.print_usage()
+ sys.exit(1)
+
# Check the file set.
fc = file_set_checker.FileSetChecker()
error_tags = fc.CheckFiles(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