SF.net SVN: gar:[23098] csw/mgar/gar/v2/lib/web/pkgdb_web.py

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sat Mar 1 19:50:03 CET 2014


Revision: 23098
          http://sourceforge.net/p/gar/code/23098
Author:   wahwah
Date:     2014-03-01 18:50:02 +0000 (Sat, 01 Mar 2014)
Log Message:
-----------
pkgdb-web: Display pkgmap in fixed font

Since we're back in good shape now, we can display pkgmap on the package
metadata page.

Modified Paths:
--------------
    csw/mgar/gar/v2/lib/web/pkgdb_web.py

Modified: csw/mgar/gar/v2/lib/web/pkgdb_web.py
===================================================================
--- csw/mgar/gar/v2/lib/web/pkgdb_web.py	2014-03-01 18:49:55 UTC (rev 23097)
+++ csw/mgar/gar/v2/lib/web/pkgdb_web.py	2014-03-01 18:50:02 UTC (rev 23098)
@@ -123,8 +123,12 @@
       archs = models.Architecture.select(models.Architecture.q.name!='all')
     else:
       archs = [pkg.arch]
-    # pkgmap is disabled for now.
+
     pkgmap = []
+    for pkgmap_entry in pkg_stats['pkgmap']:
+      pkgmap_entry = representations.PkgmapEntry._make(pkgmap_entry)
+      pkgmap.append(pkgmap_entry.line)
+
     for catrel in catrels:
       for arch in archs:
         for osrel in osrels:

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