commit:     99f0dfe5e074dcd41155cdcd7b1c2e8abe825f50
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 17 15:05:51 2019 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sun Nov 17 15:05:51 2019 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=99f0dfe5

qpkg: drop misleading and incorrect message about unmatched packages

there is no relationship between input arguments and output packages
made (e.g. slots, sub-matches, etc.)

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 qpkg.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/qpkg.c b/qpkg.c
index 7a1baae..f5e8168 100644
--- a/qpkg.c
+++ b/qpkg.c
@@ -430,7 +430,8 @@ int qpkg_main(int argc, char **argv)
                        atom = tree_get_atom(pkg_ctx, false);
                        snprintf(buf, sizeof(buf), "%s/%s", atom->CATEGORY, 
atom->PN);
                        for (i = optind; i < argc; ++i) {
-                               if (!argv[i]) continue;
+                               if (argv[i] == NULL)
+                                       continue;
 
                                if (!strcmp(argv[i], atom->PN) ||
                                                !strcmp(argv[i], atom->P) ||
@@ -443,10 +444,6 @@ int qpkg_main(int argc, char **argv)
                }
        }
 
-       s = (argc - optind) - pkgs_made;
-       if (s && !pretend)
-               printf(" %s*%s %i package%s could not be matched :/\n",
-                               RED, NORM, (int)s, (s > 1 ? "s" : ""));
        if (pkgs_made)
                qprintf(" %s*%s Packages can be found in %s\n",
                                GREEN, NORM, qpkg_bindir);

Reply via email to