import apt_pkg
from daklib import utils
from daklib import database
-from daklib import logging
+from daklib import daklog
from daklib.regexes import re_comments
################################################################################
if action == "list":
list_overrides(suite, component, otype)
else:
- if Cnf.has_key("Suite::%s::Untouchable" % suite) and Cnf["Suite::%s::Untouchable" % suite] != 0:
+ if database.get_suite_untouchable(suite):
utils.fubar("%s: suite is untouchable" % suite)
noaction = 0
utils.warn("In No-Action Mode")
noaction = 1
- Logger = logging.Logger(Cnf, "control-overrides", noaction)
+ Logger = daklog.Logger(Cnf, "control-overrides", noaction)
if file_list:
for f in file_list:
process_file(utils.open_file(f), suite, component, otype, action, noaction)