Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Do not output errors in pkg version -v when comparing with ports. (Fix ports/170354, reported by Garett Cooper) Fix orphan detection
Baptiste Daroussin committed 13 years ago
commit 673f2f725b99ed002d134f8453476a675cddee00
parent 7901f50
1 file changed +2 -2
modified pkg/version.c
@@ -376,7 +376,7 @@ exec_version(int argc, char **argv)
				}
			} else if (opt & VERSION_SOURCE_PORTS) {
				cmd = sbuf_new_auto();
-
				sbuf_printf(cmd, "make -C %s/%s -VPKGVERSION", portsdir, origin);
+
				sbuf_printf(cmd, "make -C %s/%s -VPKGVERSION 2>/dev/null", portsdir, origin);
				sbuf_finish(cmd);

				if ((res = exec_buf(sbuf_data(cmd))) != NULL) {
@@ -391,7 +391,7 @@ exec_version(int argc, char **argv)
					print_version(pkg, "port", sbuf_data(res), limchar, opt);
					sbuf_delete(res);
				} else {
-
					print_version(pkg, NULL, NULL, limchar, opt);
+
					print_version(pkg, "port", NULL, limchar, opt);
				}
				sbuf_delete(cmd);
			} else if (opt & VERSION_SOURCE_REMOTE) {