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

rthurner at users.sourceforge.net rthurner at users.sourceforge.net
Sun Mar 7 13:43:08 CET 2010


Revision: 9013
          http://gar.svn.sourceforge.net/gar/?rev=9013&view=rev
Author:   rthurner
Date:     2010-03-07 12:43:08 +0000 (Sun, 07 Mar 2010)

Log Message:
-----------
submitpkg - remove release mgr name as mandatory field

Modified Paths:
--------------
    csw/mgar/gar/v2/lib/python/opencsw.py
    csw/mgar/gar/v2/lib/python/submit_to_newpkgs.py

Modified: csw/mgar/gar/v2/lib/python/opencsw.py
===================================================================
--- csw/mgar/gar/v2/lib/python/opencsw.py	2010-03-07 11:24:03 UTC (rev 9012)
+++ csw/mgar/gar/v2/lib/python/opencsw.py	2010-03-07 12:43:08 UTC (rev 9013)
@@ -302,7 +302,10 @@
     self.sender = u"%s <%s>" % (sender_name, sender_email)
     self.pkgnames = pkgnames
     self.paths = paths
-    self.release_mgr = u"%s <%s>" % (release_mgr_name, release_mgr_email)
+    if release_mgr_name:
+      self.release_mgr = u"%s <%s>" % (release_mgr_name, release_mgr_email)
+    else:
+      self.release_mgr = u"%s" % (release_mgr_email)
     self.release_cc = release_cc
     if self.release_cc:
       self.release_cc = unicode(release_cc)

Modified: csw/mgar/gar/v2/lib/python/submit_to_newpkgs.py
===================================================================
--- csw/mgar/gar/v2/lib/python/submit_to_newpkgs.py	2010-03-07 11:24:03 UTC (rev 9012)
+++ csw/mgar/gar/v2/lib/python/submit_to_newpkgs.py	2010-03-07 12:43:08 UTC (rev 9013)
@@ -114,6 +114,10 @@
                                          options.pkgnames])
       else:
         options.catalognames = options.pkgnames
+    if config.has_option(CONFIG_RELEASE_SECTION, "release manager name"):
+      release_mgr_name=config.get(CONFIG_RELEASE_SECTION, "release manager name"),
+    else:
+      release_mgr_name = None
     if config.has_option(CONFIG_RELEASE_SECTION, "release cc"):
       release_cc = config.get(CONFIG_RELEASE_SECTION, "release cc")
     else:
@@ -174,7 +178,7 @@
     raise PackageSubmissionError(msg)
   nm = opencsw.NewpkgMailer(
       catalognames, remote_package_references,
-      release_mgr_name=config.get(CONFIG_RELEASE_SECTION, "release manager name"),
+      release_mgr_name=release_mgr_name,
       release_mgr_email=config.get(CONFIG_RELEASE_SECTION, "release manager email"),
       sender_name=config.get(CONFIG_RELEASE_SECTION, "sender name"),
       sender_email=config.get(CONFIG_RELEASE_SECTION, "sender email"),


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