From 401bb768d76f630fa7dd9ac0dd98edb5363da29a Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Mon, 14 Jul 2014 19:37:12 +0400 Subject: [PATCH] Fix bug with architectures query: it was always true. --- cmd/snapshot_pull.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/snapshot_pull.go b/cmd/snapshot_pull.go index 605e4a28..b1630bda 100644 --- a/cmd/snapshot_pull.go +++ b/cmd/snapshot_pull.go @@ -78,7 +78,7 @@ func aptlySnapshotPull(cmd *commander.Command, args []string) error { } // Build architecture query: (arch == "i386" | arch == "amd64" | ...) - var archQuery deb.PackageQuery = &deb.FieldQuery{Field: "$Architecture"} + var archQuery deb.PackageQuery = &deb.FieldQuery{"$Architecture", deb.VersionEqual, ""} for _, arch := range architecturesList { archQuery = &deb.OrQuery{L: &deb.FieldQuery{"$Architecture", deb.VersionEqual, arch}, R: archQuery} }