Skip to content

Commit

Permalink
Respect quiet not only on provided libs but also on required libs query
Browse files Browse the repository at this point in the history
  • Loading branch information
bapt committed May 13, 2015
1 parent e1495d0 commit 0afc8d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shlib.c
Expand Up @@ -115,15 +115,15 @@ pkgs_requiring_lib(struct pkgdb *db, const char *libname)
}

while ((ret = pkgdb_it_next(it, &pkg, PKG_LOAD_BASIC)) == EPKG_OK) {
if (count == 0)
if (count == 0 && !quiet)
printf("%s is linked to by the following packages:\n",
libname);
count++;
pkg_printf("%n-%v\n", pkg, pkg);
}

if (ret == EPKG_END) {
if (count == 0)
if (count == 0 && !quiet)
printf("No packages require %s.\n", libname);
ret = EPKG_OK;
}
Expand Down

0 comments on commit 0afc8d6

Please sign in to comment.