Package MatchesArchitecture, Provides.

This commit is contained in:
Andrey Smirnov
2014-01-08 17:32:52 +04:00
parent 82c06f78f7
commit 5ccbd232f4
3 changed files with 47 additions and 3 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ func (p *PublishedRepo) Publish(repo *Repository, packageCollection *PackageColl
bufWriter := bufio.NewWriter(packagesFile)
err = list.ForEach(func(pkg *Package) error {
if pkg.Architecture == arch || pkg.Architecture == "all" {
if pkg.MatchesArchitecture(arch) {
err = pkg.LinkFromPool(repo, p.Prefix, p.Component)
if err != nil {
return err