mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-02 04:50:49 +00:00
Fix publish updating (switching) for empty -> empty scenario. #66
This commit is contained in:
@@ -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