X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fsplit_done.py;h=6b6d28fbf7370bfd09130fb53912a7ed1604d0f7;hb=06ce98c8111a8b09e5603dbbd34324a216412d69;hp=c595f68e2e7af07e8844b81906ce28234d3cc466;hpb=ca1925d9291ec667f63dc6a895a3ac36fa9d6547;p=dak.git diff --git a/dak/split_done.py b/dak/split_done.py index c595f68e..6b6d28fb 100755 --- a/dak/split_done.py +++ b/dak/split_done.py @@ -1,7 +1,6 @@ #!/usr/bin/env python -# Copyright (C) 2004, 2005 James Troup -# $Id: nina,v 1.2 2005-11-15 09:50:32 ajt Exp $ +# Copyright (C) 2004, 2005, 2006 James Troup # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -20,12 +19,12 @@ ################################################################################ import glob, os, stat, time -import utils +import dak.lib.utils ################################################################################ def main(): - Cnf = utils.get_conf() + Cnf = dak.lib.utils.get_conf() count = 0 os.chdir(Cnf["Dir::Queue::Done"]) files = glob.glob("%s/*" % (Cnf["Dir::Queue::Done"])) @@ -38,7 +37,7 @@ def main(): os.makedirs(dirname) dest = dirname + '/' + os.path.basename(filename) if os.path.exists(dest): - utils.fubar("%s already exists." % (dest)) + dak.lib.utils.fubar("%s already exists." % (dest)) print "Move: %s -> %s" % (filename, dest) os.rename(filename, dest) count = count + 1