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

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Tue May 24 09:34:12 CEST 2011


Revision: 14637
          http://gar.svn.sourceforge.net/gar/?rev=14637&view=rev
Author:   wahwah
Date:     2011-05-24 07:34:12 +0000 (Tue, 24 May 2011)

Log Message:
-----------
csw-upload-pkg: Only print to screen when asked

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-05-24 07:33:11 UTC (rev 14636)
+++ csw/mgar/gar/v2/lib/python/csw_upload_pkg.py	2011-05-24 07:34:12 UTC (rev 14637)
@@ -125,7 +125,8 @@
     do_upload = True
     planned_modifications = []
     metadata_by_md5 = {}
-    print "Processing %s file(s). Please wait." % (len(self.filenames),)
+    if self.output_to_screen:
+      print "Processing %s file(s). Please wait." % (len(self.filenames),)
     for filename in self.filenames:
       self._ImportMetadata(filename)
       md5_sum = self._GetFileMd5sum(filename)


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