extras-buildsys/common HTTPServer.py,1.14,1.15

Daniel Williams (dcbw) fedora-extras-commits at redhat.com
Mon May 8 14:25:47 UTC 2006


Author: dcbw

Update of /cvs/fedora/extras-buildsys/common
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv28668/common

Modified Files:
	HTTPServer.py 
Log Message:
2006-05-08  Dan Williams  <dcbw at redhat.com>

    * common/HTTPServer.py
        - For test code, print out received files, and put them
            in /tmp/server_dir rather than just in /tmp




Index: HTTPServer.py
===================================================================
RCS file: /cvs/fedora/extras-buildsys/common/HTTPServer.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- HTTPServer.py	3 May 2006 04:04:28 -0000	1.14
+++ HTTPServer.py	8 May 2006 14:25:44 -0000	1.15
@@ -225,13 +225,14 @@
 
     if jobid is not None and arch and filename and tmpfile:
         import shutil
-        dest = file("/tmp/%s" % filename, "w+b")
+        dest = file("/tmp/server_dir/%s" % filename, "w+b")
         shutil.copyfileobj(tmpfile, dest)
         dest.close()
         request_handler.send_response(200, "Success")
         request_handler.send_header("Content-type", "text/html")
         request_handler.end_headers()
         request_handler.wfile.write("<html><body>Success!</body></html>")
+        print "Finished with %d (%s) at %s" % (jobid, arch, filename)
     else:
         request_handler.send_error(400, "Invalid request for %s" % request_handler.path)
 




More information about the fedora-extras-commits mailing list