From e01af5dfd6af8ce1bf3278fd4a18136f77db44d0 Mon Sep 17 00:00:00 2001 From: morganamilo Date: Mon, 15 Oct 2018 13:31:28 +0100 Subject: [PATCH] Fixup asdeps logic --- install.go | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/install.go b/install.go index 262759bd..441492f0 100644 --- a/install.go +++ b/install.go @@ -1047,17 +1047,12 @@ func buildInstallPkgbuilds(dp *depPool, do *depOrder, srcinfos map[string]*gosrc } arguments.addTarget(pkgdest) - if !dp.Explicit.get(split.Name) && !localNamesCache.get(split.Name) && !remoteNamesCache.get(split.Name) { + if parser.existsArg("asdeps", "asdep") { + deps = append(deps, split.Name) + } else if parser.existsArg("asexplicit", "asexp") { + exp = append(exp, split.Name) + } else if !dp.Explicit.get(split.Name) && !localNamesCache.get(split.Name) && !remoteNamesCache.get(split.Name) { deps = append(deps, split.Name) - } - - if dp.Explicit.get(split.Name) { - if parser.existsArg("asdeps", "asdep") { - deps = append(deps, split.Name) - } else if parser.existsArg("asexplicit", "asexp") { - exp = append(exp, split.Name) - - } } }