diff options
| author | Maxim Cournoyer <maxim@guixotic.coop> | 2026-08-26 22:47:33 +0900 |
|---|---|---|
| committer | Maxim Cournoyer <maxim@guixotic.coop> | 2026-08-27 14:52:09 +0900 |
| commit | 6fc8a3a19a9d9e6f1b9147ce7c6b46f3b7a4de66 (patch) | |
| tree | 99e3384263d7d521a4139b76940c4a30ae97e88c | |
| parent | 8e4909179cc85cdba933eddf2a792350e8f32a85 (diff) | |
teams/gnome: Refine gnome-core-refresh script.
* etc/teams/gnome/gnome-core-refresh (%gnome-releng-versions-uri): Update to
version 50.
(%names): Add more associations.
(make-name-spec): New procedure.
(releng-tree->update-specs): Use it.
| -rwxr-xr-x | etc/teams/gnome/gnome-core-refresh | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/etc/teams/gnome/gnome-core-refresh b/etc/teams/gnome/gnome-core-refresh index f9c7a9c661e..21a801a2b7b 100755 --- a/etc/teams/gnome/gnome-core-refresh +++ b/etc/teams/gnome/gnome-core-refresh | |||
| @@ -48,7 +48,7 @@ | |||
| 48 | (define %gnome-releng-versions-uri | 48 | (define %gnome-releng-versions-uri |
| 49 | (make-parameter | 49 | (make-parameter |
| 50 | (or (getenv "GNOME_RELENG_VERSIONS_URI") | 50 | (or (getenv "GNOME_RELENG_VERSIONS_URI") |
| 51 | "https://gitlab.gnome.org/GNOME/releng/-/raw/master/tools/versions-49"))) | 51 | "https://gitlab.gnome.org/GNOME/releng/-/raw/master/tools/versions-50"))) |
| 52 | 52 | ||
| 53 | (define (fetch-releng-content) | 53 | (define (fetch-releng-content) |
| 54 | "Return a string corresponding to the content of the %GNOME-RELENG-VERSIONS-URI | 54 | "Return a string corresponding to the content of the %GNOME-RELENG-VERSIONS-URI |
| @@ -73,10 +73,26 @@ NL < '\n'") | |||
| 73 | 73 | ||
| 74 | (define %names | 74 | (define %names |
| 75 | '(("adwaita-fonts" . "font-adwaita") | 75 | '(("adwaita-fonts" . "font-adwaita") |
| 76 | ("glycin" . "glycin-loaders") | 76 | ("glycin" . "libglycin") |
| 77 | ("json-glib" . "json-glib-minimal") | ||
| 78 | ("libcloudproviders" . "libcloudproviders-minimal") | ||
| 79 | ("libsoup" . "libsoup-minimal") | ||
| 77 | ("pygobject" . "python-pygobject") | 80 | ("pygobject" . "python-pygobject") |
| 78 | ("pyatspi" . "python-pyatspi"))) | 81 | ("pyatspi" . "python-pyatspi"))) |
| 79 | 82 | ||
| 83 | (define (make-name-spec name version) | ||
| 84 | "Return a package name specification given its NAME and VERSION. This can | ||
| 85 | be used when the package NAME need to be transformed based on its VERSION." | ||
| 86 | (match (list name (version-major version)) | ||
| 87 | (("gcr" "3") | ||
| 88 | "gcr@3") | ||
| 89 | (("gtksourceview" "4") | ||
| 90 | "gtksourceview@4") | ||
| 91 | (("gtk" "3") | ||
| 92 | "gtk+") | ||
| 93 | ((name _) | ||
| 94 | (or (assoc-ref %names name) name)))) | ||
| 95 | |||
| 80 | (define (parse-releng data) | 96 | (define (parse-releng data) |
| 81 | "Return the complete parse tree for DATA, a string representing the content of | 97 | "Return the complete parse tree for DATA, a string representing the content of |
| 82 | a GNOME releng file." | 98 | a GNOME releng file." |
| @@ -105,7 +121,7 @@ refresh' can automatically find the newest compatible version." | |||
| 105 | (match tree | 121 | (match tree |
| 106 | (('releng ('entry ('suite "core") ('name name) ('version version) _) ...) | 122 | (('releng ('entry ('suite "core") ('name name) ('version version) _) ...) |
| 107 | (filter-map (lambda (name version) | 123 | (filter-map (lambda (name version) |
| 108 | (let ((name (or (assoc-ref %names name) name))) | 124 | (let* ((name (make-name-spec name version))) |
| 109 | (and (check-package-name name) | 125 | (and (check-package-name name) |
| 110 | (if partial-versions? | 126 | (if partial-versions? |
| 111 | (let* ((parts (string-split version #\.)) | 127 | (let* ((parts (string-split version #\.)) |
