Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Do not try to reinstall packages lower than the installed version in pkg install
Baptiste Daroussin committed 13 years ago
commit 53b7ab2358506215ff3cc3405a1b66b3532d8eaf
parent afadb95
1 file changed +1 -1
modified libpkg/pkgdb.c
@@ -2438,7 +2438,7 @@ pkgdb_query_installs(struct pkgdb *db, match_t match, int nbpkgs, char **pkgs, c
	/* Report and remove packages already installed and at the latest version */
	report_already_installed(db->sqlite);
	if (!force)
-
		sql_exec(db->sqlite, "DELETE from pkgjobs where (select p.origin from main.packages as p where p.origin=pkgjobs.origin and p.version=pkgjobs.version and p.name = pkgjobs.name) IS NOT NULL;");
+
		sql_exec(db->sqlite, "DELETE from pkgjobs where (select p.origin from main.packages as p where p.origin=pkgjobs.origin and PKGLE(p.version,pkgjobs.version) and p.name = pkgjobs.name) IS NOT NULL;");

	/* Append dependencies */
	sbuf_reset(sql);