diff options
author | Fabian Groffen <grobian@gentoo.org> | 2019-11-17 16:05:51 +0100 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2019-11-17 16:05:51 +0100 |
commit | 99f0dfe5e074dcd41155cdcd7b1c2e8abe825f50 (patch) | |
tree | 3c07e2c7604f2388a5346db422840625f533765a /qpkg.c | |
parent | man: regen (diff) | |
download | portage-utils-99f0dfe5e074dcd41155cdcd7b1c2e8abe825f50.tar.gz portage-utils-99f0dfe5e074dcd41155cdcd7b1c2e8abe825f50.tar.bz2 portage-utils-99f0dfe5e074dcd41155cdcd7b1c2e8abe825f50.zip |
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@gentoo.org>
Diffstat (limited to 'qpkg.c')
-rw-r--r-- | qpkg.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -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); |