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

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sun Apr 28 20:23:29 CEST 2013


Revision: 20894
          http://gar.svn.sourceforge.net/gar/?rev=20894&view=rev
Author:   wahwah
Date:     2013-04-28 18:23:29 +0000 (Sun, 28 Apr 2013)
Log Message:
-----------
pkgdb-web: Comments and md5 sum in a response

For better visibility as to what's going on.

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

Modified: csw/mgar/gar/v2/lib/web/releases_web.py
===================================================================
--- csw/mgar/gar/v2/lib/web/releases_web.py	2013-04-28 18:23:19 UTC (rev 20893)
+++ csw/mgar/gar/v2/lib/web/releases_web.py	2013-04-28 18:23:29 UTC (rev 20894)
@@ -193,6 +193,7 @@
           c.RemoveSrv4(srv4_to_remove, osrel_name, arch_name, catrel_name)
 
       # Retrieving logged in user name from the HTTP environment.
+      # This does not work on the buildfarm. :-(
       username = web.ctx.env.get('REMOTE_USER')
 
       c.AddSrv4ToCatalog(srv4, osrel_name, arch_name, catrel_name, who=username)
@@ -202,6 +203,7 @@
       response = cjson.encode([
         u"Added to catalog %s %s %s" % (catrel_name, arch_name, osrel_name),
         u"%s" % srv4.basename,
+        u"%s" % srv4.md5_sum,
       ])
       web.header('Content-Length', len(response))
       return response

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