Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix pkg add allowing to install package with missing dependencies
Baptiste Daroussin committed 12 years ago
commit 53a4011d603ad6b965fd8f7e95dfc4277c88cadf
parent 6101f91841d640cce6a41721de6754f03de3f88a
1 file changed +5 -0
modified libpkg/pkg_add.c
@@ -269,6 +269,11 @@ pkg_add(struct pkgdb *db, const char *path, unsigned flags, struct pkg_manifest_
					retcode = EPKG_FATAL;
					goto cleanup;
				}
+
			} else {
+
				pkg_emit_error("Missing dependency matching '%s'",
+
				    pkg_dep_get(dep, PKG_DEP_ORIGIN));
+
				retcode = EPKG_FATAL;
+
				goto cleanup;
			}
		} else {
			retcode = EPKG_FATAL;