Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
in plist if @cwd is set with no arguments it should fallback to default prefix
Baptiste Daroussin committed 15 years ago
commit 547bc687f7fafdcf259b869d90885279f36e8ff8
parent 68e33410687109a868e1010a53a89aedf6503bb7
1 file changed +5 -1
modified libpkg/pkg_ports.c
@@ -50,7 +50,11 @@ ports_parse_plist(struct pkg *pkg, char *plist)
			if (STARTS_WITH(plist_p, "@cwd ")) {
				buf = plist_p;
				buf += 5;
-
				if (buf != NULL)
+
				/* with no arguments default to the original
+
				 * prefix */
+
				if (buf[0] == '\0')
+
					prefix = pkg_get(pkg, PKG_PREFIX);
+
				else
					prefix = buf;
			} else if (STARTS_WITH(plist_p, "@comment ")){
				/* DO NOTHING: ignore the comments */