parsePackageList: include pkgrel in version

This commit is contained in:
morganamilo 2018-08-18 17:54:20 +01:00
parent 907bf3a30e
commit aca65e743a
No known key found for this signature in database
GPG key ID: 6FE9E7996B0B082E

View file

@ -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
}