mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 23:46:13 -05:00
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
1 changed files with 3 additions and 2 deletions
|
@ -983,8 +983,9 @@ (define width*
|
|||
(if (> width 2) (- width 2) width))
|
||||
|
||||
(define (dependencies->recutils packages)
|
||||
(let ((list (string-join (map package-full-name
|
||||
(sort packages package<?)) " ")))
|
||||
(let ((list (string-join (delete-duplicates
|
||||
(map package-full-name
|
||||
(sort packages package<?))) " ")))
|
||||
(string->recutils
|
||||
(fill-paragraph list width*
|
||||
(string-length "dependencies: ")))))
|
||||
|
|
Loading…
Reference in a new issue