From 6df8b316db2e18d26d4e3609198dac23d80a9b84 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Sun, 4 May 2008 02:32:54 +0200 Subject: [PATCH] Use "import daklib.foo as foo" style --- ChangeLog | 1 + dak/split_done.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) mode change 100644 => 100755 dak/split_done.py 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 -- 2.39.5