Merge branch 'master' into deterministic-stanza-WriteTo

This commit is contained in:
William Manley
2019-01-21 13:48:07 +00:00
committed by GitHub
9 changed files with 28 additions and 24 deletions
+4 -6
View File
@@ -540,12 +540,10 @@ func (repo *RemoteRepo) DownloadPackageIndexes(progress aptly.Progress, d aptly.
}
}
err = repo.packageList.Add(p)
if err != nil {
if _, ok := err.(*PackageConflictError); ok {
progress.ColoredPrintf("@y[!]@| @!skipping package %s: duplicate in packages index@|", p)
} else {
return err
}
if _, ok := err.(*PackageConflictError); ok {
progress.ColoredPrintf("@y[!]@| @!skipping package %s: duplicate in packages index@|", p)
} else if err != nil {
return err
}
}
-1
View File
@@ -5,7 +5,6 @@ import (
)
type VersionSuite struct {
stanza Stanza
}
var _ = Suite(&VersionSuite{})