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

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Thu Oct 20 11:36:44 CEST 2011


Revision: 15940
          http://gar.svn.sourceforge.net/gar/?rev=15940&view=rev
Author:   wahwah
Date:     2011-10-20 09:36:43 +0000 (Thu, 20 Oct 2011)
Log Message:
-----------
pkgdb/html-gen: Cope with missing repo tag

OPENCSW_REPOSITORY might be missing from pkginfo.

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

Modified: csw/mgar/gar/v2/lib/python/pkgdb.py
===================================================================
--- csw/mgar/gar/v2/lib/python/pkgdb.py	2011-10-20 09:36:13 UTC (rev 15939)
+++ csw/mgar/gar/v2/lib/python/pkgdb.py	2011-10-20 09:36:43 UTC (rev 15940)
@@ -128,7 +128,10 @@
       data = srv4.GetStatsStruct()
       build_src_url_svn = srv4.GetSvnUrl()
       build_src_url_trac = srv4.GetTracUrl()
-      data["build_src"] = data["pkginfo"]["OPENCSW_REPOSITORY"]
+      if "OPENCSW_REPOSITORY" in data["pkginfo"]:
+        data["build_src"] = data["pkginfo"]["OPENCSW_REPOSITORY"]
+      else:
+        data["build_src"] = u"Repository address unknown"
       data["build_src_url_svn"] = build_src_url_svn
       data["build_src_url_trac"] = build_src_url_trac
       data["error_tags"] = list(self.GetErrorTagsResult(srv4))

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