Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Do not try to reinstall packages lower than the installed version in pkg install
Baptiste Daroussin committed 13 years ago
commit 53b7ab2358506215ff3cc3405a1b66b3532d8eaf
parent afadb9550fd401e04e3a7bde4d3ee9388a8f1a64
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);