Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
pkg_repo_fetch_package: Don't try symlinking if path is not set in cases where the file already existed
Bryan Drewery committed 11 years ago
commit c04c530e1ff26d84264341b6c6484751166f6e19
parent 3eb39cd
1 file changed +1 -1
modified libpkg/pkg_repo.c
@@ -207,7 +207,7 @@ pkg_repo_fetch_package(struct pkg *pkg)
	cleanup:
	if (retcode != EPKG_OK)
		unlink(dest);
-
	else {
+
	else if (path != NULL) {
		/* Create symlink from full pkgname */
		ext = strrchr(dest, '.');
		pkg_snprintf(link_dest, sizeof(link_dest), "%S/%n-%v%S",