[csw-devel] SF.net SVN: gar:[14467] csw/mgar/gar/v2/lib/python/submit_to_newpkgs.py
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Fri Apr 29 17:04:22 CEST 2011
Revision: 14467
http://gar.svn.sourceforge.net/gar/?rev=14467&view=rev
Author: wahwah
Date: 2011-04-29 15:04:22 +0000 (Fri, 29 Apr 2011)
Log Message:
-----------
submitpkg: Allow to specify an alternate directory
A new flag allows to specify a directory from which packages should be read.
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 2011-04-29 14:59:22 UTC (rev 14466)
+++ csw/mgar/gar/v2/lib/python/submit_to_newpkgs.py 2011-04-29 15:04:22 UTC (rev 14467)
@@ -124,10 +124,13 @@
dest="catalognames",
help="A comma-separated list of catalog names: "
"cups,cupsdevel,libcups")
- parser.add_option("-d", "--debug",
+ parser.add_option("--debug",
dest="debug", default=False,
action="store_true",
help="Print debugging messages")
+ parser.add_option("-d", "--package-dir",
+ dest="package_dir",
+ help="Specify the directory with packages")
parser.add_option("--no-clean",
dest="clean", default=True,
action="store_false",
@@ -164,8 +167,11 @@
print CONFIG_INFO
print e
sys.exit(1)
- staging_dir = opencsw.StagingDir(config.get(CONFIG_RELEASE_SECTION,
- "package dir"))
+
+ package_dir = config.get(CONFIG_RELEASE_SECTION, "package dir")
+ if options.package_dir:
+ package_dir = options.package_dir
+ staging_dir = opencsw.StagingDir(package_dir)
if options.catalognames:
catalognames = options.catalognames.split(",")
else:
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