Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix output format
Andrej Zverev committed 11 years ago
commit ee461934334585784a993e699fb60124756da307
parent fccbe9b
1 file changed +4 -6
modified src/check.c
@@ -73,12 +73,10 @@ check_deps(struct pkgdb *db, struct pkg *p, struct deps_head *dh, bool noinstall
	while (pkg_deps(p, &dep) == EPKG_OK) {
		/* do we have a missing dependency? */
		if (pkg_is_installed(db, pkg_dep_origin(dep)) != EPKG_OK) {
-
			if (noinstall)
-
				printf("%s\n", pkg_dep_origin(dep));
-
			else
-
				printf("%s has a missing dependency: %s\n", origin,
-
			       pkg_dep_origin(dep));
-
			add_missing_dep(dep, dh, &nbpkgs);
+
			 printf("%s has a missing dependency: %s\n", origin,
+
                               pkg_dep_origin(dep));
+
			if (!noinstall)
+
				add_missing_dep(dep, dh, &nbpkgs);
		}
	}