[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: gnu: shadow: Correctly match the system type.
From: |
Ludovic Courtès |
Subject: |
01/01: gnu: shadow: Correctly match the system type. |
Date: |
Thu, 6 Jul 2017 18:45:03 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 5dfbd7697104ec217f8ed39d711990e27591c1d1
Author: Ludovic Courtès <address@hidden>
Date: Fri Jul 7 00:43:03 2017 +0200
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(-)
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 75fba24..ac8f155 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