mirror of
https://github.com/Jguer/yay.git
synced 2025-10-07 00:14:22 -04:00
parsePackageList: include pkgrel in version
This commit is contained in:
parent
907bf3a30e
commit
aca65e743a
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user