Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix pkg-fetch -d. unit can be NULL here.
Bryan Drewery committed 11 years ago
commit 593df90980edd683b2e55683cc7fcd00e0634ae1
parent ac9673d0229288faf86c3c99039b25ade9aa414e
1 file changed +1 -1
modified libpkg/pkg_jobs_universe.c
@@ -252,7 +252,7 @@ pkg_jobs_universe_process_deps(struct pkg_jobs_universe *universe,
				continue;

		/* Explicitly request for a dependency for mirroring */
-
		if (flags & DEPS_FLAG_MIRROR)
+
		if (unit != NULL && flags & DEPS_FLAG_MIRROR)
			pkg_jobs_add_req(universe->j, d->uid, unit);

		if (rpkg != NULL) {