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

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Thu Nov 29 12:16:48 CET 2012


Revision: 19769
          http://gar.svn.sourceforge.net/gar/?rev=19769&view=rev
Author:   wahwah
Date:     2012-11-29 11:16:47 +0000 (Thu, 29 Nov 2012)
Log Message:
-----------
csw-upload-pkg: Updates to the --help message

Show what the valid values of --os-release are, and mention --catalog-release
as an available flag.

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	2012-11-29 10:33:48 UTC (rev 19768)
+++ csw/mgar/gar/v2/lib/python/csw_upload_pkg.py	2012-11-29 11:16:47 UTC (rev 19769)
@@ -32,28 +32,29 @@
 Uploads a set of packages to the unstable catalog in opencsw-future.
 
 - When an architecture-independent package is uploaded, it gets added to both
-	sparc and i386 catalogs
+  sparc and i386 catalogs
 
 - When a SunOS5.x package is sent, it's added to catalogs SunOS5.x,
   SunOS5.(x+1), up to SunOS5.11, but only if there are no packages specific to
   5.10 (and/or 5.11).
 
 - If a package update is sent, the tool uses both the catalogname and the
-	pkgname to identify the package it's updating. For example, you might upload
-	foo_stub/CSWfoo and mean to replace foo/CSWfoo with it.
+  pkgname to identify the package it's updating. For example, you might upload
+  foo_stub/CSWfoo and mean to replace foo/CSWfoo with it.
 
 The --os-release flag makes %prog only insert the package to catalog with the
 given OS release.
 
+The --catalog-release flag allows to insert a package into a specific catalog,
+instead of the default 'unstable'.
+
 = General considerations =
 
 This tool operates on a database of packages and a package file store. It
-modifies a number of package catalogs, a cartesian product of:
+modifies a number of package catalogs, e.g.:
 
-  {legacy,dublin,unstable}x{sparc,i386}x{5.8,5.9.5.10,5.11}
+  {{dublin,unstable,kiel,bratislava}}x{{sparc,i386}}x{{5.8,5.9.5.10,5.11}}
 
-This amounts to 3x2x4 = 24 package catalogs total.
-
 For more information, see:
 http://wiki.opencsw.org/automated-release-process#toc0
 """
@@ -451,7 +452,8 @@
       default=False, action="store_true")
   parser.add_option("--os-release",
       dest="os_release",
-      help="If specified, only uploads to the specified OS release.")
+      help="If specified, only uploads to the specified OS release. "
+           "Valid values: {0}".format(" ".join(common_constants.OS_RELS)))
   parser.add_option("--rest-url",
       dest="rest_url",
       default=BASE_URL,

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