Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Respect quiet not only on provided libs but also on required libs query
Baptiste Daroussin committed 11 years ago
commit 0afc8d672afafba3820324199787a2307ccb2b92
parent e1495d02a4210037089277e51845645f06b80122
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;
	}