Browse Source

Delete signature in the src repo when moving package

move-only-function
Martchus 1 year ago
parent
commit
9581716d8b
  1. 3
      librepomgr/buildactions/repomanagement.cpp

3
librepomgr/buildactions/repomanagement.cpp

@ -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()));

Loading…
Cancel
Save