[csw-devel] SF.net SVN: gar:[14577] csw/mgar/gar/v2/lib/python/submit_to_newpkgs.py
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Sat May 14 22:17:48 CEST 2011
Revision: 14577
http://gar.svn.sourceforge.net/gar/?rev=14577&view=rev
Author: wahwah
Date: 2011-05-14 20:17:48 +0000 (Sat, 14 May 2011)
Log Message:
-----------
submitpkg: Add a teaser for csw-upload-pkg
Signed-off-by: Maciej Blizinski <maciej at opencsw.org>
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-05-14 12:23:08 UTC (rev 14576)
+++ csw/mgar/gar/v2/lib/python/submit_to_newpkgs.py 2011-05-14 20:17:48 UTC (rev 14577)
@@ -103,7 +103,26 @@
logging.error(msg)
raise PackageSubmissionError(msg)
+def DisplayCswUploadPkgTeaser(files_to_rsync):
+ if not files_to_rsync:
+ print "No files have been processed."
+ return
+ print
+ print "Please try the new package upload tool."
+ print "It will upload your packages to the opencsw-future catalog."
+ print "http://mirror.opencsw.org/opencsw-future/"
+ print "Once uploaded, your packages will be available in a couple hours."
+ print "To upload, run the following command:"
+ print
+ script_path = os.path.join(
+ os.path.dirname(sys.argv[0]),
+ "csw-upload-pkg")
+ print "%s \\" % script_path
+ for f in files_to_rsync[:-1]:
+ print " %s \\" % f
+ print " %s" % files_to_rsync[-1]
+
def main():
try:
config = ConfigParser.SafeConfigParser()
@@ -246,6 +265,7 @@
print "Your e-mail hasn't been sent yet!"
print "Issue the following command to have it sent:"
print "sendmail -t < %s" % DEFAULT_FILE_NAME
+ DisplayCswUploadPkgTeaser(files_to_rsync)
if __name__ == '__main__':
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