summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2014-10-26 07:17:04 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2014-10-26 07:17:04 -0700
commiteb0dda0ab8b981bac17e0add14f8201d61758361 (patch)
treeae93c258cad5bf2a8b7bb0337e2681b05c60c656
parent1c378eec834e8aea2966024605e0c963156dcc44 (diff)
It's possible to externally lock dpkg under _root!
-rw-r--r--MobileCydia.mm3
1 files changed, 3 insertions, 0 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 72bcebd..72f95d1 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -3815,6 +3815,8 @@ class CydiaLogCleaner :
}
_end
+ _root(true) _system->Lock();
+
_trace();
OpProgress progress;
bool opened;
@@ -3850,6 +3852,7 @@ class CydiaLogCleaner :
}
}
+ _system->UnLock();
return;
}
_trace();