[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/security] 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 85c1507..92f2164 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 2fc6c90..5502dcc
--- 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
-- 
1.5.6.5



Reply to: