Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Respect quiet not only on provided libs but also on required libs query
Baptiste Daroussin committed 10 years ago
commit 0afc8d672afafba3820324199787a2307ccb2b92
parent e1495d0
1 file changed +2 -2
modified src/shlib.c
@@ -115,7 +115,7 @@ 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++;
@@ -123,7 +123,7 @@ pkgs_requiring_lib(struct pkgdb *db, const char *libname)
	}

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