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

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Wed May 30 00:26:31 CEST 2012


Revision: 18166
          http://gar.svn.sourceforge.net/gar/?rev=18166&view=rev
Author:   wahwah
Date:     2012-05-29 22:26:31 +0000 (Tue, 29 May 2012)
Log Message:
-----------
generate-catalog-file: Fix dep generation

SUNW dependencies need to be filtered out.

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

Modified: csw/mgar/gar/v2/lib/python/generate_catalog_file.py
===================================================================
--- csw/mgar/gar/v2/lib/python/generate_catalog_file.py	2012-05-29 22:26:01 UTC (rev 18165)
+++ csw/mgar/gar/v2/lib/python/generate_catalog_file.py	2012-05-29 22:26:31 UTC (rev 18166)
@@ -55,6 +55,14 @@
       i_deps = "|".join(i_deps)
     else:
       i_deps = "none"
+    deps = []
+    for dep, _ in deps_data["deps"]:
+      if "CSW" in dep:
+      	deps.append(dep)
+    if deps:
+    	deps = "|".join(deps)
+    else:
+    	deps = "none"
     items = [
         pkg_data["catalogname"],
         pkg_data["version_string"],
@@ -62,7 +70,7 @@
         pkg_data["basename"],
         pkg_data["md5_sum"],
         unicode(pkg_data["size"]),
-        "|".join(x[0] for x in deps_data["deps"]),
+        deps,
         "none",
         i_deps]
     return " ".join(items)

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