From 5dfbd7697104ec217f8ed39d711990e27591c1d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Fri, 7 Jul 2017 00:43:03 +0200 Subject: 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. --- gnu/packages/admin.scm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gnu') diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 75fba24796..ac8f155fcf 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -324,11 +324,11 @@ hostname.") (for-each delete-file (find-files man "^groups\\.")) #t)))))) - (inputs (if (string-suffix? "-linux" - (or (%current-target-system) - (%current-system))) - `(("linux-pam" ,linux-pam)) - '())) + (inputs (if (string-contains (or (%current-target-system) + (%current-system)) + "-linux") + `(("linux-pam" ,linux-pam)) + '())) (home-page "http://pkg-shadow.alioth.debian.org/") (synopsis "Authentication-related tools such as passwd, su, and login") (description -- cgit v1.2.3