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

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sat Feb 5 20:38:45 CET 2011


Revision: 13203
          http://gar.svn.sourceforge.net/gar/?rev=13203&view=rev
Author:   wahwah
Date:     2011-02-05 19:38:45 +0000 (Sat, 05 Feb 2011)

Log Message:
-----------
pkgdb: Using "pkgname-list" as media type

It's a list of pkgnames represented as strings.

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	2011-02-05 19:38:13 UTC (rev 13202)
+++ csw/mgar/gar/v2/lib/web/pkgdb_web.py	2011-02-05 19:38:45 UTC (rev 13203)
@@ -203,7 +203,7 @@
     db_catalog = checkpkg_lib.Catalog()
     try:
       pkgs = db_catalog.GetPkgByPath(filename, osrel, arch, catrel)
-      web.header('Content-type', 'application/x-vnd.opencsw.pkg;type=pkg-list')
+      web.header('Content-type', 'application/x-vnd.opencsw.pkg;type=pkgname-list')
       web.header('X-Rest-Info', 'I could tell you about the format, but I won\'t')
       web.header('Content-Disposition',
                  'attachment; filename=%s' % send_filename)


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