From: Zac Medico Date: Wed, 29 Sep 2010 15:57:50 +0000 (-0700) Subject: Invert portageq list_preserved_libs returncode meaning. X-Git-Tag: v2.1.9.13~10 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=00c707aed4298910341e9f8907137c7f214d2c7c;p=portage.git Invert portageq list_preserved_libs returncode meaning. Thanks to Jeremy Olexa for the suggestion. --- diff --git a/bin/portageq b/bin/portageq index 27a2e250e..4c9b9c13e 100755 --- a/bin/portageq +++ b/bin/portageq @@ -550,21 +550,21 @@ def get_repo_path(argv): def list_preserved_libs(argv): """ Print a list of libraries preserved during a package update in the form - package: path. Returns 0 if no preserved libraries could be found, - 1 otherwise. + package: path. Returns 1 if no preserved libraries could be found, + 0 otherwise. """ if len(argv) != 1: print("ERROR: wrong number of arguments") sys.exit(2) mylibs = portage.db[argv[0]]["vartree"].dbapi._plib_registry.getPreservedLibs() - rValue = 0 + rValue = 1 msg = [] for cpv in sorted(mylibs): msg.append(cpv) for path in mylibs[cpv]: msg.append(' ' + path) - rValue = 1 + rValue = 0 msg.append('\n') writemsg_stdout(''.join(msg), noiselevel=-1) return rValue