Allow publishing of empty snapshots and local repos. #55

This commit is contained in:
Andrey Smirnov
2014-05-31 21:13:30 +04:00
parent bcdfb7d99a
commit e1dbab6988
8 changed files with 93 additions and 8 deletions
-4
View File
@@ -282,10 +282,6 @@ func (p *PublishedRepo) Publish(packagePool aptly.PackagePool, publishedStorage
return fmt.Errorf("unable to load packages: %s", err)
}
if list.Len() == 0 {
return fmt.Errorf("source is empty")
}
if !p.rePublishing {
if len(p.Architectures) == 0 {
p.Architectures = list.Architectures(true)