import: github: Honor upstream-name property.

* guix/import/github.scm (import-release): Use package-upstream-name instead
of package-name.

Change-Id: I9a4999a01156ce02584270837ceab70996b49106
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
This commit is contained in:
Dariqq 2024-06-23 08:03:26 +00:00 committed by Nicolas Goaziou
parent 6eb19661c5
commit 1ace18d351
No known key found for this signature in database
GPG Key ID: DA00B4F048E92F2D

View File

@ -327,7 +327,7 @@ Optionally include a VERSION string to fetch a specific version."
(let* ((original-uri (origin-uri (package-source pkg)))
(source-uri (github-uri original-uri))
(name (package-name pkg))
(name (package-upstream-name pkg))
(newest-version version-tag
(latest-released-version source-uri name
#:version version)))