]> git.decadent.org.uk Git - dak.git/blobdiff - dak/control_overrides.py
[rmurray] teach control_overrides about untouchable suites.
[dak.git] / dak / control_overrides.py
index 7f4cc7b2f62bca4f4d564f5427f651f6dc306058..01eee0ed359646d7d13fbaa9792b72bebbe9e801 100755 (executable)
@@ -50,8 +50,8 @@
 ################################################################################
 
 import pg, sys, time
-import utils, database, logging
 import apt_pkg
+import daklib.utils, daklib.database, daklib.logging
 
 ################################################################################
 
@@ -282,6 +282,9 @@ def main ():
     if action == "list":
         list(suite, component, type)
     else:
+        if Cnf.has_key("Suite::%s::Untouchable" % suite) and Cnf["Suite::%s::Untouchable" % suite] != 0:
+           daklib.utils.fubar("%s: suite is untouchable" % suite)
+
         Logger = daklib.logging.Logger(Cnf, "control-overrides")
         if file_list:
             for file in file_list: