Use secpass to determine whether emergelog exceptions should be ignored.
authorZac Medico <zmedico@gentoo.org>
Fri, 23 Jun 2006 06:28:27 +0000 (06:28 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 23 Jun 2006 06:28:27 +0000 (06:28 -0000)
svn path=/main/trunk/; revision=3619

bin/emerge

index 1ab1874a3277b5c2ff7afdfaebd95f73e892b26b..803640d28f84f15645baed24e86e7118f637ba6e 100755 (executable)
@@ -21,6 +21,7 @@ import portage_util
 import portage_locks
 import portage_exception
 from portage_const import PROFILE_PATH
+from portage_data import secpass
 
 portage.global_updates(
        portage.settings, portage.db, portage.mtimedb["updates"])
@@ -477,9 +478,8 @@ def emergelog(mystr,short_msg=None):
                portage_locks.unlockfile(l)
                mylogfile.close()
        except (IOError,OSError,portage_exception.PortageException), e:
-               if edebug:
-                       print "emergelog():",e
-               pass
+               if secpass >= 1:
+                       print >> sys.stderr, "emergelog():",e
 
 def emergeexit():
        """This gets out final log message in before we quit."""