Package MatchesArchitecture, Provides.

This commit is contained in:
Andrey Smirnov committed 2014-01-08 17:32:52 +04:00
1 parent 82c06f78f7
commit 5ccbd232f4
3 files changed
+47 -3

No files matched your search

+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