瀏覽代碼

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

Ferdinand Bachmann 2 年之前
父節點
當前提交
bebe80bb84
共有 1 個文件被更改,包括 2 次插入2 次删除
  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)
 		}
 	}