Manager: Create package list file if non-existent

This commit is contained in:
Riyyi
2022-02-01 18:16:56 +01:00
parent 592ee124cb
commit 42b34aad61
+1 -1
View File
@@ -63,7 +63,7 @@ void Package::store()
{ {
std::string packages = getPackageList(); std::string packages = getPackageList();
auto packageFile = Util::File("./packages"); auto packageFile = Util::File::create("./packages");
packageFile.clear(); packageFile.clear();
packageFile.append(packages); packageFile.append(packages);
packageFile.flush(); packageFile.flush();