Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Set reponame for local packages.
Vsevolod Stakhov committed 11 years ago
commit b1d20e6f316e9807ef91af4bd8e9bd2ae51e5c08
parent fcc43fd
1 file changed +2 -1
modified libpkg/pkg_jobs.c
@@ -2352,9 +2352,10 @@ pkg_jobs_handle_install(struct pkg_solved *ps, struct pkg_jobs *j, bool handle_r

	if (ps->items[0]->jp != NULL && ps->items[0]->jp->is_file) {
		/*
-
		 * We have package as a file
+
		 * We have package as a file, set special repository name
		 */
		target = ps->items[0]->jp->path;
+
		pkg_set(new, PKG_REPONAME, "local file");
	}
	else {
		pkg_snprintf(path, sizeof(path), "%R", new);