Delete signature in the src repo when moving package

This commit is contained in:
Martchus 2021-03-16 15:16:03 +01:00
parent 307322ab11
commit 9581716d8b
1 changed files with 2 additions and 1 deletions

View File

@ -334,9 +334,10 @@ void MovePackages::handleRepoRemoveResult(MultiSession<void>::SharedPointerType
if (!ok) {
continue;
}
// delete package within source repo; leave package at storage location because some other repo might still link to it
// delete package within source repo; leave package at storage location because some other repo might still link to it (cleanup action takes care of that)
try {
std::filesystem::remove(packageLocation.pathWithinRepo);
std::filesystem::remove(argsToString(packageLocation.pathWithinRepo, ".sig"));
} catch (const std::runtime_error &e) {
ok = false;
m_result.failedPackages.emplace_back(packageName, argsToString("unable to remove from source repo: ", e.what()));