fuckit: no patch db locks (#1969)

* fuck it: no patchdb locks

* fix: Add the locking to the package during the backup. (#1979)

* fix: Add the locking to the package during the backup.

* fix: Lock for the uninstall of the package

* switch patch-db to next

Co-authored-by: J M <2364004+Blu-J@users.noreply.github.com>
This commit is contained in:
Aiden McClelland
2022-11-28 10:20:47 -07:00
parent a3a4fdd7fc
commit 2b0efb32c1
11 changed files with 35 additions and 28 deletions

View File

@@ -80,7 +80,7 @@ impl VersionT for Version {
for package_id in crate::db::DatabaseModel::new()
.package_data()
.keys(db, false)
.keys(db)
.await?
.iter()
{
@@ -126,7 +126,7 @@ impl VersionT for Version {
ui["auto-check-updates"] = Value::Bool(true);
ui["pkg-order"] = json!(crate::db::DatabaseModel::new()
.package_data()
.keys(db, false)
.keys(db)
.await?
.iter()
.map(|x| x.to_string())