mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-11-14 14:47:19 +00:00
Fix publish updating (switching) for empty -> empty scenario. #66
This commit is contained in:
1 parent
0c6951fcd2
commit
3199fd85fb
1 file changed
+5
@@ -111,6 +111,11 @@ func (storage *PublishedStorage) Filelist(prefix string) ([]string, error) {
|
||||
return nil
|
||||
})
|
||||
|
||||
if err != nil && os.IsNotExist(err) {
|
||||
// file path doesn't exist, consider it empty
|
||||
return []string{}, nil
|
||||
}
|
||||
|
||||
return result, err
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user