Delete signature in the src repo when moving package
This commit is contained in:
parent
307322ab11
commit
9581716d8b
|
@ -334,9 +334,10 @@ void MovePackages::handleRepoRemoveResult(MultiSession<void>::SharedPointerType
|
||||||
if (!ok) {
|
if (!ok) {
|
||||||
continue;
|
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 {
|
try {
|
||||||
std::filesystem::remove(packageLocation.pathWithinRepo);
|
std::filesystem::remove(packageLocation.pathWithinRepo);
|
||||||
|
std::filesystem::remove(argsToString(packageLocation.pathWithinRepo, ".sig"));
|
||||||
} catch (const std::runtime_error &e) {
|
} catch (const std::runtime_error &e) {
|
||||||
ok = false;
|
ok = false;
|
||||||
m_result.failedPackages.emplace_back(packageName, argsToString("unable to remove from source repo: ", e.what()));
|
m_result.failedPackages.emplace_back(packageName, argsToString("unable to remove from source repo: ", e.what()));
|
||||||
|
|
Loading…
Reference in New Issue