From 036baa226462852d447b444615a6956cbbbde800 Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Fri, 14 Nov 2014 00:01:41 +0300 Subject: [PATCH] Exclude "source" architecture from list of Release architectures. #140 --- deb/remote.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/deb/remote.go b/deb/remote.go index 83f87096..08064244 100644 --- a/deb/remote.go +++ b/deb/remote.go @@ -14,6 +14,7 @@ import ( "os" "path" "path/filepath" + "sort" "strconv" "strings" "sync" @@ -308,6 +309,9 @@ ok: if !repo.IsFlat() { architectures := strings.Split(stanza["Architectures"], " ") + sort.Strings(architectures) + // "source" architecture is never present, despite Release file claims + architectures = utils.StrSlicesSubstract(architectures, []string{"source"}) if len(repo.Architectures) == 0 { repo.Architectures = architectures } else {