X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fsplit_done.py;h=5f8faddaf8e4041e05fffdc1b0ef7915ed91547b;hb=d80d1f9473ed63a08404a23c04a9d8eabedc76a6;hp=2fc6c900e8ee92296be34f960a0cbb66522e29fa;hpb=d9822f04453a1b62ca0aa66e2efeea35f654778f;p=dak.git diff --git a/dak/split_done.py b/dak/split_done.py old mode 100644 new mode 100755 index 2fc6c900..5f8fadda --- a/dak/split_done.py +++ b/dak/split_done.py @@ -19,12 +19,12 @@ ################################################################################ import glob, os, stat, time -import daklib.utils +from daklib import 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