gnu: shadow: Correctly match the system type.

* gnu/packages/admin.scm (shadow)[inputs]: Use 'string-contains' instead
of 'string-prefix?' when matching the system type.
This commit is contained in:
Ludovic Courtès 2017-07-07 00:43:03 +02:00
parent 879b89d1ae
commit 5dfbd76971
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -324,11 +324,11 @@ (define-public shadow
(for-each delete-file (find-files man "^groups\\.")) (for-each delete-file (find-files man "^groups\\."))
#t)))))) #t))))))
(inputs (if (string-suffix? "-linux" (inputs (if (string-contains (or (%current-target-system)
(or (%current-target-system) (%current-system))
(%current-system))) "-linux")
`(("linux-pam" ,linux-pam)) `(("linux-pam" ,linux-pam))
'())) '()))
(home-page "http://pkg-shadow.alioth.debian.org/") (home-page "http://pkg-shadow.alioth.debian.org/")
(synopsis "Authentication-related tools such as passwd, su, and login") (synopsis "Authentication-related tools such as passwd, su, and login")
(description (description