mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
gnu-maintenance: Ignore "redirect" blurbs.
* guix/gnu-maintenance.scm (official-gnu-packages)[official-description]: Return #f for blurbs that start with "redirect ".
This commit is contained in:
parent
f5a345adeb
commit
4d5f0bae3e
1 changed files with 12 additions and 1 deletions
|
@ -127,7 +127,18 @@ (define official-description
|
||||||
(and=> (find (lambda (alist)
|
(and=> (find (lambda (alist)
|
||||||
(equal? name (assoc-ref alist "package")))
|
(equal? name (assoc-ref alist "package")))
|
||||||
db)
|
db)
|
||||||
(cut assoc-ref <> "blurb")))))
|
(lambda (record)
|
||||||
|
(let ((field (assoc-ref record "blurb")))
|
||||||
|
;; The upstream description file uses "redirect PACKAGE" as
|
||||||
|
;; a blurb in cases where the description of the two
|
||||||
|
;; packages should be considered the same (e.g., GTK+ has
|
||||||
|
;; "redirect gnome".) This is usually not acceptable for
|
||||||
|
;; us because we prefer to have distinct descriptions in
|
||||||
|
;; such cases. Thus, ignore the 'blurb' field when that
|
||||||
|
;; happens.
|
||||||
|
(and field
|
||||||
|
(not (string-prefix? "redirect " field))
|
||||||
|
field)))))))
|
||||||
|
|
||||||
(map (lambda (alist)
|
(map (lambda (alist)
|
||||||
(let ((name (assoc-ref alist "package")))
|
(let ((name (assoc-ref alist "package")))
|
||||||
|
|
Loading…
Reference in a new issue