Bläddra i källkod

fix(aur_install): fix debug pacakges not being found (#1977)

Ferdinand Bachmann 2 år sedan
förälder
incheckning
bebe80bb84
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      aur_install.go

+ 2 - 2
aur_install.go

@@ -342,12 +342,12 @@ func (installer *Installer) getNewTargets(pkgdests map[string]string, name strin
 
 	pkgArchives = append(pkgArchives, pkgdest)
 
-	debugName := pkgdest + "-debug"
+	debugName := name + "-debug"
 
 	pkgdestDebug, ok := pkgdests[debugName]
 	if ok {
 		if _, errStat := os.Stat(pkgdestDebug); errStat == nil {
-			pkgArchives = append(pkgArchives, debugName)
+			pkgArchives = append(pkgArchives, pkgdestDebug)
 		}
 	}