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

extras-buildsys/utils package-builder.py,1.6,1.7



Author: dcbw

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

Modified Files:
	package-builder.py 
Log Message:
Fix 'build' command syntax errors


Index: package-builder.py
===================================================================
RCS file: /cvs/fedora/extras-buildsys/utils/package-builder.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- package-builder.py	17 Jun 2005 15:58:39 -0000	1.6
+++ package-builder.py	17 Jun 2005 16:01:40 -0000	1.7
@@ -230,7 +230,7 @@
         sys.exit(1)
 
     if cmd == 'build':
-        item = sys.argv[2:]
+        item = sys.argv[2]
         try:
             if item.endswith(".src.rpm") and os.path.exists(item):
                 enqueue_srpm(server, email, item)
@@ -244,4 +244,7 @@
         update_clients(server, email)
     elif cmd == 'list_clients':
         list_clients(server, email)
+    else:
+        print "Unknown command."
+        sys.exit(1)
 


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