ui: package->recutlis: Remove duplicated package names in dependencies.
* guix/ui.scm (package->recutils): Add call to 'delete-duplicates' in 'dependencies->recutils'.
This commit is contained in:
parent
b2fde4800d
commit
dbde386ee3
|
@ -983,8 +983,9 @@ WIDTH columns. EXTRA-FIELDS is a list of symbol/value pairs to emit."
|
||||||
(if (> width 2) (- width 2) width))
|
(if (> width 2) (- width 2) width))
|
||||||
|
|
||||||
(define (dependencies->recutils packages)
|
(define (dependencies->recutils packages)
|
||||||
(let ((list (string-join (map package-full-name
|
(let ((list (string-join (delete-duplicates
|
||||||
(sort packages package<?)) " ")))
|
(map package-full-name
|
||||||
|
(sort packages package<?))) " ")))
|
||||||
(string->recutils
|
(string->recutils
|
||||||
(fill-paragraph list width*
|
(fill-paragraph list width*
|
||||||
(string-length "dependencies: ")))))
|
(string-length "dependencies: ")))))
|
||||||
|
|
Loading…
Reference in New Issue