[sysadmin-bin] create-auth: store const



commit 93f6011d438ed7d7d3761eed216b536c25f45e49
Author: Olav Vitters <olav vitters nl>
Date:   Sat Apr 2 13:36:36 2011 +0200

    create-auth: store const

 create-auth |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/create-auth b/create-auth
index f89cc0f..0b063ed 100755
--- a/create-auth
+++ b/create-auth
@@ -285,8 +285,10 @@ if __name__ == '__main__':
     parser.add_option("--translation-user",
                       action="store_const", dest="restrict", const="gnomegit-i18n")
 
-    parser.add_option("--create-all-homedirs", dest="homedirs", const="all")
-    parser.add_option("--create-homedirs", dest="homedirs", const="basic")
+    parser.add_option("--create-all-homedirs",
+                      action="store_const", dest="homedirs", const="all")
+    parser.add_option("--create-homedirs",
+                      action="store_const", dest="homedirs", const="basic")
 
     parser.set_defaults(homedirs=None)
 



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