Skip to content

Commit e2d891e

Browse files
reddevillgdengbo11
authored andcommitted
fix: update mime databse before remove empty dir
update-mime-databse works only if "mime/packages" directory exists Signed-off-by: reddevillg <reddevillg@gmail.com>
1 parent 707a0a1 commit e2d891e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

libs/linglong/src/linglong/repo/ostree_repo.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1737,6 +1737,8 @@ void OSTreeRepo::unexportReference(const std::string &layerDir) noexcept
17371737
}
17381738
}
17391739

1740+
this->updateSharedInfo();
1741+
17401742
std::function<void(const QString &path)> removeEmptySubdirectories =
17411743
[&removeEmptySubdirectories](const QString &path) {
17421744
QDir dir(path);
@@ -1763,7 +1765,6 @@ void OSTreeRepo::unexportReference(const std::string &layerDir) noexcept
17631765
}
17641766
};
17651767
removeEmptySubdirectories(entriesDir.absolutePath());
1766-
this->updateSharedInfo();
17671768
}
17681769

17691770
void OSTreeRepo::unexportReference(const package::Reference &ref) noexcept

0 commit comments

Comments
 (0)