[csw-devel] SF.net SVN: gar:[13346] csw/mgar/gar/v2/lib/python/csw_upload_pkg.py
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Thu Feb 17 11:28:18 CET 2011
Revision: 13346
http://gar.svn.sourceforge.net/gar/?rev=13346&view=rev
Author: wahwah
Date: 2011-02-17 10:28:18 +0000 (Thu, 17 Feb 2011)
Log Message:
-----------
csw-upload-pkg: docstring for _MatchSrv4ToCatalogs
Documenting the arguments and the return value of _MatchSrv4ToCatalogs.
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-02-17 08:00:00 UTC (rev 13345)
+++ csw/mgar/gar/v2/lib/python/csw_upload_pkg.py 2011-02-17 10:28:18 UTC (rev 13346)
@@ -145,6 +145,16 @@
If it's a 5.9 package, it can be matched to 5.9, 5.10 and 5.11. However,
if there already are specific 5.10 and/or 5.11 versions of the package,
don't overwrite them.
+
+ Args:
+ filename: string, base file name of the srv4 stream file
+ catrel: string denoting catalog release, usually 'unstable'
+ srv4_arch: string, denoting srv4 file architecture (sparc, i386 or all)
+ srv4_osrel: string, OS release of the package, e.g. 'SunOS5.9'
+ md5_sum: string, md5 sum of the srv4 file
+
+ Returns:
+ A tuple of tuples, where each tuple is: (catrel, arch, osrel)
"""
basename = os.path.basename(filename)
parsed_basename = opencsw.ParsePackageFileName(basename)
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