mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-14 09:57:16 +00:00
clean pathCache
This commit is contained in:
1 parent
d7cc9b89d1
commit
5c1fd4dd2c
1 file changed
+1
@@ -228,6 +228,7 @@ func (storage *PublishedStorage) Remove(path string) error {
|
||||
return errors.Wrap(err, fmt.Sprintf("error deleting %s from %s", path, storage))
|
||||
}
|
||||
|
||||
delete(storage.pathCache, path)
|
||||
if storage.plusWorkaround && strings.Contains(path, "+") {
|
||||
// try to remove workaround version, but don't care about result
|
||||
_ = storage.Remove(strings.Replace(path, "+", " ", -1))
|
||||
|
||||
Reference in new issue
Block a user