Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Overwrite an existing value if it exists in the pid lock table
Baptiste Daroussin committed 12 years ago
commit dedb60f2c30a2731fe5a4ca41f984262258f307a
parent 9905493
1 file changed +1 -1
modified libpkg/pkgdb.c
@@ -4165,7 +4165,7 @@ static int
pkgdb_write_lock_pid(struct pkgdb *db)
{
	const char lock_pid_sql[] = ""
-
			"INSERT INTO pkg_lock_pid VALUES (?1);";
+
			"INSERT OR REPLACE INTO pkg_lock_pid VALUES (?1);";
	sqlite3_stmt	*stmt = NULL;
	int ret;