Support for dependencies with fixed archs (like as source dependency).

This commit is contained in:
Andrey Smirnov
2014-02-17 15:36:16 +04:00
parent c2f01c8aa1
commit a0b1ff8abe
2 changed files with 25 additions and 10 deletions
+5 -1
View File
@@ -18,6 +18,8 @@ const (
DepFollowRecommends
// DepFollowAllVariants follows all variants if depends on "a | b"
DepFollowAllVariants
// DepFollowBuild pulls build dependencies
DepFollowBuild
)
// PackageList is list of unique (by key) packages
@@ -224,7 +226,9 @@ func (l *PackageList) VerifyDependencies(options int, architectures []string, so
missingCount := 0
for _, dep := range variants {
dep.Architecture = arch
if dep.Architecture == "" {
dep.Architecture = arch
}
hash := dep.Hash()
r, ok := cache[hash]