Author: neronus-guest
Date: 2008-08-07 19:05:20 +0000 (Thu, 07 Aug 2008)
New Revision: 988

Modified:
   udd/src/udd-update.py
Log:
If an update-command fails, udd-update returns the exit status of the command


Modified: udd/src/udd-update.py
===================================================================
--- udd/src/udd-update.py       2008-08-07 18:49:46 UTC (rev 987)
+++ udd/src/udd-update.py       2008-08-07 19:05:20 UTC (rev 988)
@@ -1,5 +1,5 @@
 #!/usr/bin/env python
-# Last-Modified: <Sat Aug  2 18:46:52 2008>
+# Last-Modified: <Thu Aug  7 19:07:48 2008>
 
 """
 This script executes the update statements for selected sources
@@ -28,7 +28,10 @@
   for src in sys.argv[2:]:
     src_cfg = config[src]
     if "update-command" in src_cfg:
-      if system(src_cfg['update-command']) == 0 and 'update-timestamp-folder' 
in config['general']:
+      result = system(src_cfg['update-command']) 
+      if result != 0:
+       sys.exit(result)
+      if 'update-timestamp-folder' in config['general']:
        f = open(os.path.join(config['general']['update-timestamp-folder'], 
src), "w")
        f.write(asctime())
        f.close()


_______________________________________________
Collab-qa-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/collab-qa-commits

Reply via email to