瀏覽代碼

parsePackageList: include pkgrel in version

morganamilo 6 年之前
父節點
當前提交
aca65e743a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      install.go

+ 1 - 1
install.go

@@ -478,7 +478,7 @@ func parsePackageList(dir string) (map[string]string, string, error) {
 		// This assumes 3 dashes after the pkgname, Will cause an error
 		// if the PKGEXT contains a dash. Please no one do that.
 		pkgname := strings.Join(split[:len(split)-3], "-")
-		version = strings.Join(split[len(split)-3:len(split)-2], "-")
+		version = strings.Join(split[len(split)-3:len(split)-1], "-")
 		pkgdests[pkgname] = line
 	}