From 165a544e679baeec5f4c6b874ac102db727b7e85 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 29 Sep 2010 08:57:50 -0700 Subject: [PATCH] Invert portageq list_preserved_libs returncode meaning. Thanks to Jeremy Olexa for the suggestion. --- bin/portageq | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.26.2