[Pkg-debile-commits] [debile-master] 01/01: Avoid mkdir the same directory twice

Léo Cavaillé leo.cavaille-guest at alioth.debian.org
Mon Aug 26 09:46:52 UTC 2013


This is an automated email from the git hooks/post-receive script.

leo.cavaille-guest pushed a commit to branch master
in repository debile-master.

commit d2aab4a8a4466a4c1d260b12c716cfc590c4573f
Author: Léo Cavaillé <leo at cavaille.net>
Date:   Mon Aug 26 11:46:00 2013 +0200

    Avoid mkdir the same directory twice
---
 debile/master/cli/init.py |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/debile/master/cli/init.py b/debile/master/cli/init.py
index ed52782..c6f2c4b 100644
--- a/debile/master/cli/init.py
+++ b/debile/master/cli/init.py
@@ -51,14 +51,15 @@ def main():
                                     admin=True)
     session.add(initialadmin)
     session.commit()
-    ur = UserRepository(initialadmin)
-    ur.create_repository()
     print "Create the pool"
     os.makedirs(pool)
     print "Create the incoming"
     os.makedirs(incoming)
     print "Create the job attachments"
     os.makedirs(jobs)
+    print "Creating initial admin pool"
+    ur = UserRepository(initialadmin)
+    ur.create_repository()
 
 if __name__ == "__main__":
     main()

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-debile/debile-master.git



More information about the Pkg-debile-commits mailing list