From: Joerg Jaspert Date: Sun, 4 May 2008 00:32:54 +0000 (+0200) Subject: Use "import daklib.foo as foo" style X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6df8b316db2e18d26d4e3609198dac23d80a9b84;p=dak Use "import daklib.foo as foo" style --- diff --git a/ChangeLog b/ChangeLog index 85c15070..92f21645 100644 --- a/ChangeLog +++ b/ChangeLog @@ -32,6 +32,7 @@ * dak/process_unchecked.py: likewise * dak/rm.py: likewise * dak/show_new.py: likewise + * dak/split_done.py: likewise * dak/check_archive.py (check_files_not_symlinks): Remove long-time unused and commented code. Import stuff from daklib as diff --git a/dak/split_done.py b/dak/split_done.py old mode 100644 new mode 100755 index 2fc6c900..5502dcc5 --- a/dak/split_done.py +++ b/dak/split_done.py @@ -19,12 +19,12 @@ ################################################################################ import glob, os, stat, time -import daklib.utils +import daklib.utils as utils ################################################################################ def main(): - Cnf = daklib.utils.get_conf() + Cnf = utils.get_conf() count = 0 move_date = int(time.time())-(30*84600) os.chdir(Cnf["Dir::Queue::Done"]) @@ -41,7 +41,7 @@ def main(): os.makedirs(dirname) dest = dirname + '/' + os.path.basename(filename) if os.path.exists(dest): - daklib.utils.fubar("%s already exists." % (dest)) + utils.fubar("%s already exists." % (dest)) print "Move: %s -> %s" % (filename, dest) os.rename(filename, dest) count = count + 1