me
/
guix
Archived
1
0
Fork 0

scripts/refresh: Remove column from spec line before sorting.

We want to sort by file and line number, but the column number messes
everything up.

This is a follow-up to commit b43841c124.

* guix/scripts/refresh.scm (guix-refresh): Trim the digits on the right of the
location string before comparing them.
Ricardo Wurmus 2023-07-17 13:51:54 +02:00
parent ad08f9331f
commit eda2c23874
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 2 additions and 1 deletions

View File

@ -591,7 +591,8 @@ all are dependent packages: ~{~a~^ ~}~%")
(string-append (config-directory)
"/upstream/trustedkeys.kbx"))))
(let* ((spec-line
(compose location->string
(compose (cut string-trim-right <> char-set:digit)
location->string
package-location
update-spec-package))
;; Sort the specs so that we update packages from the