################################################################################
import sys
-import dak.lib.queue, dak.lib.utils
import apt_pkg
-
+import daklib.queue
+import daklib.utils
################################################################################
################################################################################
def main():
- Cnf = dak.lib.utils.get_conf()
+ Cnf = daklib.utils.get_conf()
Arguments = [('h',"help","Decode-Dot-Dak::Options::Help")]
for i in [ "help" ]:
if not Cnf.has_key("Decode-Dot-Dak::Options::%s" % (i)):
if Options["Help"]:
usage()
- k = dak.lib.queue.Upload(Cnf)
+ k = daklib.queue.Upload(Cnf)
for arg in sys.argv[1:]:
- arg = dak.lib.utils.validate_changes_file_arg(arg,require_changes=-1)
+ arg = daklib.utils.validate_changes_file_arg(arg,require_changes=-1)
k.pkg.changes_file = arg
print "%s:" % (arg)
k.init_vars()
del changes[i]
print
if changes:
- dak.lib.utils.warn("changes still has following unrecognised keys: %s" % (changes.keys()))
+ daklib.utils.warn("changes still has following unrecognised keys: %s" % (changes.keys()))
dsc = k.pkg.dsc
print " Dsc:"
del dsc[i]
print
if dsc:
- dak.lib.utils.warn("dsc still has following unrecognised keys: %s" % (dsc.keys()))
+ daklib.utils.warn("dsc still has following unrecognised keys: %s" % (dsc.keys()))
files = k.pkg.files
print " Files:"
print " %s: %s" % (i.capitalize(), files[file][i])
del files[file][i]
if files[file]:
- dak.lib.utils.warn("files[%s] still has following unrecognised keys: %s" % (file, files[file].keys()))
+ daklib.utils.warn("files[%s] still has following unrecognised keys: %s" % (file, files[file].keys()))
print
dsc_files = k.pkg.dsc_files
print " %s: %s" % (i.capitalize(), dsc_files[file][i])
del dsc_files[file][i]
if dsc_files[file]:
- dak.lib.utils.warn("dsc_files[%s] still has following unrecognised keys: %s" % (file, dsc_files[file].keys()))
+ daklib.utils.warn("dsc_files[%s] still has following unrecognised keys: %s" % (file, dsc_files[file].keys()))
################################################################################