From 42b34aad6167ff91a5db7736dfddaf6c85855f29 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Tue, 1 Feb 2022 18:10:35 +0100 Subject: [PATCH] Manager: Create package list file if non-existent --- src/package.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/package.cpp b/src/package.cpp index 53a3cc4..bc67505 100644 --- a/src/package.cpp +++ b/src/package.cpp @@ -63,7 +63,7 @@ void Package::store() { std::string packages = getPackageList(); - auto packageFile = Util::File("./packages"); + auto packageFile = Util::File::create("./packages"); packageFile.clear(); packageFile.append(packages); packageFile.flush();