extras-buildsys/utils extras-push-new, 1.6, 1.7 extras-repobuild.py, 1.14, 1.15 extras-repoview.py, 1.4, 1.5

Michael Schwendt (mschwendt) fedora-extras-commits at redhat.com
Thu May 11 09:03:13 UTC 2006


Author: mschwendt

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

Modified Files:
	extras-push-new extras-repobuild.py extras-repoview.py 
Log Message:
- make run_and_check() check the range of returned error condition codes


Index: extras-push-new
===================================================================
RCS file: /cvs/fedora/extras-buildsys/utils/extras-push-new,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- extras-push-new	10 May 2006 21:41:37 -0000	1.6
+++ extras-push-new	11 May 2006 09:03:08 -0000	1.7
@@ -98,6 +98,8 @@
     result = os.system(cmd)
     if result != 0:
         print >> sys.stderr, 'Error running command: %s ' % cmd
+        if result > 255:
+            sys.exit(1)
         sys.exit(result)
 
 


Index: extras-repobuild.py
===================================================================
RCS file: /cvs/fedora/extras-buildsys/utils/extras-repobuild.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- extras-repobuild.py	23 Apr 2006 13:44:36 -0000	1.14
+++ extras-repobuild.py	11 May 2006 09:03:08 -0000	1.15
@@ -51,6 +51,8 @@
         result = os.system(cmd)
         if result != 0:
             print >> sys.stderr, 'Error running command: %s ' % cmd
+            if result > 255:
+                sys.exit(1)
             sys.exit(result)
 
 


Index: extras-repoview.py
===================================================================
RCS file: /cvs/fedora/extras-buildsys/utils/extras-repoview.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- extras-repoview.py	23 Apr 2006 13:44:36 -0000	1.4
+++ extras-repoview.py	11 May 2006 09:03:08 -0000	1.5
@@ -43,6 +43,8 @@
         result = os.system(cmd)
         if result != 0:
             print >> sys.stderr, 'Error running command: %s ' % cmd
+            if result > 255:
+                sys.exit(1)
             sys.exit(result)
 
 




More information about the fedora-extras-commits mailing list