Add more progress feedback for normal usage.
authorBrian Dolbec <dolsen@gentoo.org>
Sat, 22 Jun 2013 20:13:54 +0000 (13:13 -0700)
committerBrian Dolbec <dolsen@gentoo.org>
Sun, 23 Jun 2013 04:30:59 +0000 (21:30 -0700)
gkeyldap/cli.py

index 8d9dc85e0a4db1e1facb8cb9a2167bb97fda1646..ba0218bfa603a4175fce64d2dd7b1e2f110c4c63 100644 (file)
@@ -119,6 +119,7 @@ class Main(object):
 
 
     def _action_updateseeds(self, args):
+        print("Beginning ldap search...")
         l = LdapSearch()
         if not l.connect():
             print("Aborting Update...Connection failed")
@@ -132,6 +133,7 @@ class Main(object):
                 "Original seed file is intact & untouched.")
         old = self.config['dev-seedfile'] + '.old'
         try:
+            print("Backing up existing file...")
             if os.path.exists(old):
                 logger.debug(
                     "MAIN: _action_updateseeds; Removing 'old' seed file: %s"
@@ -154,7 +156,7 @@ class Main(object):
 
 
     def create_seedfile(self, devs):
-        logger.debug("create_seedfile, arrived")
+        print("Creating seeds from ldap data...")
         filename = self.config['dev-seedfile'] + '.new'
         self.seeds = Seeds(filename)
         count = 0
@@ -167,8 +169,7 @@ class Main(object):
             self.seeds.add(new_gkey)
             count += 1
         print("Total number of seeds created:", count)
-        logger.debug("MAIN: create_seedfile; seeds created...saving file: %s"
-            % filename)
+        print("Seeds created...saving file: %s" % filename)
         return self.seeds.save()