fix: correct creating parent directory of layerDir

Signed-off-by: black-desk <me@black-desk.cn>
This commit is contained in:
black-desk 2024-04-02 16:05:49 +08:00
parent 200a1c4998
commit 07220668d5
No known key found for this signature in database
GPG Key ID: 761EE6143999AE8B
1 changed files with 0 additions and 3 deletions

View File

@ -355,9 +355,6 @@ utils::error::Result<void> handleRepositoryUpdate(OstreeRepo *repo,
if (!layerDir.mkpath(".")) {
Q_ASSERT(false);
}
if (!layerDir.cdUp()) {
Q_ASSERT(false);
}
if (!layerDir.removeRecursively()) {
Q_ASSERT(false);
}