mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
clean pathCache
This commit is contained in:
@@ -228,6 +228,7 @@ func (storage *PublishedStorage) Remove(path string) error {
|
|||||||
return errors.Wrap(err, fmt.Sprintf("error deleting %s from %s", path, storage))
|
return errors.Wrap(err, fmt.Sprintf("error deleting %s from %s", path, storage))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
delete(storage.pathCache, path)
|
||||||
if storage.plusWorkaround && strings.Contains(path, "+") {
|
if storage.plusWorkaround && strings.Contains(path, "+") {
|
||||||
// try to remove workaround version, but don't care about result
|
// try to remove workaround version, but don't care about result
|
||||||
_ = storage.Remove(strings.Replace(path, "+", " ", -1))
|
_ = storage.Remove(strings.Replace(path, "+", " ", -1))
|
||||||
|
|||||||
Reference in New Issue
Block a user