[Collab-qa-commits] r2160 - udd

Andreas Tille tille at alioth.debian.org
Sun Feb 19 14:45:32 UTC 2012


Author: tille
Date: 2012-02-19 14:45:31 +0000 (Sun, 19 Feb 2012)
New Revision: 2160

Modified:
   udd/udd.py
Log:
Make sure a broken update of data will really prevent running an importer


Modified: udd/udd.py
===================================================================
--- udd/udd.py	2012-02-19 12:17:55 UTC (rev 2159)
+++ udd/udd.py	2012-02-19 14:45:31 UTC (rev 2160)
@@ -62,7 +62,9 @@
         if "update-command" in src_config:
           result = system(src_config['update-command']) 
           if result != 0:
-            sys.exit(result)
+            # Returning result does not necessarily end up as "false"
+            # see http://lists.debian.org/debian-qa/2012/02/msg00068.html
+            sys.exit(1)
         end_time = get_timestamp()
       else:
         (src_command,rest) = types[type].split(None, 1)




More information about the Collab-qa-commits mailing list