[csw-devel] SF.net SVN: gar:[15491] csw/mgar/gar/v2/lib/python/csw_upload_pkg.py
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Fri Sep 2 00:21:59 CEST 2011
Revision: 15491
http://gar.svn.sourceforge.net/gar/?rev=15491&view=rev
Author: wahwah
Date: 2011-09-01 22:21:59 +0000 (Thu, 01 Sep 2011)
Log Message:
-----------
csw-upload-pkg: --no-filename-check
An option to skip the checking of filenames. The safeguard is intented do
catch situations such as a missing architecture. For example, if you upload
the following set of files:
foo-1.0-SunOS5.9-sparc-CSW.pkg.gz
foo-1.0-SunOS5.10-sparc-CSW.pkg.gz
foo-1.0-SunOS5.9-i386-CSW.pkg.gz
...the tool will tell you that foo-1.0-SunOS5.10-i386-CSW.pkg.gz is missing.
But sometimes there are legitimate irregularities, and this option allows to
do that.
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-09-01 22:10:07 UTC (rev 15490)
+++ csw/mgar/gar/v2/lib/python/csw_upload_pkg.py 2011-09-01 22:21:59 UTC (rev 15491)
@@ -551,6 +551,10 @@
dest="rest_url",
default=BASE_URL,
help="Base URL for REST, e.g. %s" % BASE_URL)
+ parser.add_option("--no-filename-check",
+ dest="filename_check",
+ default=True, action="store_false",
+ help="Don't check the filename set (e.g. for a missing architecture)")
options, args = parser.parse_args()
if options.debug:
logging.basicConfig(level=logging.DEBUG)
@@ -575,7 +579,10 @@
print "There is a problem with the presented file list."
for error_tag in error_tags:
print "*", error_tag
- sys.exit(1)
+ if options.filename_check:
+ sys.exit(1)
+ else:
+ print "Continuing anyway."
username = os.environ["LOGNAME"]
authfile = os.path.join('/etc/opt/csw/releases/auth', username)
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