]> git.donarmstrong.com Git - dak.git/commitdiff
Use "import daklib.foo as foo" style
authorJoerg Jaspert <joerg@debian.org>
Sun, 4 May 2008 00:32:54 +0000 (02:32 +0200)
committerJoerg Jaspert <joerg@debian.org>
Sun, 4 May 2008 00:32:54 +0000 (02:32 +0200)
ChangeLog
dak/split_done.py [changed mode: 0644->0755]

index 85c150706e95ccc5f2f563d38c7f1a9874170a4f..92f2164594a8ca9112a11491648e265dc9cae287 100644 (file)
--- 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
old mode 100644 (file)
new mode 100755 (executable)
index 2fc6c90..5502dcc
 ################################################################################
 
 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