[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

extras-buildsys/utils package-builder.py,1.12,1.13



Author: dcbw

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

Modified Files:
	package-builder.py 
Log Message:
2005-06-26  Dan Williams <dcbw redhat com>

    * utils/package-builder.py
        - Report server errors

    * Fix paths in config files




Index: package-builder.py
===================================================================
RCS file: /cvs/fedora/extras-buildsys/utils/package-builder.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- package-builder.py	26 Jun 2005 14:59:56 -0000	1.12
+++ package-builder.py	26 Jun 2005 15:14:17 -0000	1.13
@@ -66,7 +66,10 @@
         (e, msg,) = server.enqueue(package, tag, target)
     else:
         (e, msg) = server.enqueue(email, package, tag, target)
-    print "Package %s enqueued." % package
+    if e == -1:
+        print "Server returned an error: %s" % msg
+    else:
+        print "Package %s enqueued." % package
 
 
 def enqueue_srpm(server, email, args):
@@ -82,7 +85,10 @@
         (e, msg) = server.enqueue_srpm(package, srpm, target)
     else:
         (e, msg) = server.enqueue_srpm(email, package, srpm, target)
-    print "Package %s enqueued." % package
+    if e == -1:
+        print "Server returned an error: %s" % msg
+    else:
+        print "Package %s enqueued." % package
 
 
 def list_own_jobs(server, email):


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]