Use better parseable format for list_preserved_libs
authorMarius Mauch <genone@gentoo.org>
Fri, 29 Jun 2007 08:04:24 +0000 (08:04 -0000)
committerMarius Mauch <genone@gentoo.org>
Fri, 29 Jun 2007 08:04:24 +0000 (08:04 -0000)
svn path=/main/trunk/; revision=7088

bin/portageq

index 11ac316eb42e49b8e4e987f2f04dcc30550b28a8..99bf49bc282b76380a5a505904884d55c88178fb 100755 (executable)
@@ -306,10 +306,13 @@ def list_preserved_libs(argv):
        mylibs = portage.db[argv[0]]["vartree"].dbapi.plib_registry.getPreservedLibs()
        rValue = 0
        for cpv in mylibs:
+               print cpv,
                for path in mylibs[cpv]:
-                       print "%s: %s" % (cpv, path)
+                       print path,
                        rValue = 1
+               print
        return rValue
+list_preserved_libs.uses_root = True
 
 #-----------------------------------------------------------------------------
 #