aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2016-10-30 07:21:15 +0100
committerRicardo Wurmus <rekado@elephly.net>2016-10-30 07:21:15 +0100
commit054f60cd31a300ac757c17ee5023710da3dd0ba5 (patch)
tree8f166dd4a346c6671ebb7b79f85449aa9494299f
parente3c1311a5d9016e6bb45d160ba17648c1ae53ca8 (diff)
downloadpatches-054f60cd31a300ac757c17ee5023710da3dd0ba5.tar
patches-054f60cd31a300ac757c17ee5023710da3dd0ba5.tar.gz
profiles: manifest-lookup-package: Cosmetic changes.
* guix/profiles.scm (manifest-lookup-package): Rename variables; use "string=?" instead of "equal?".
-rw-r--r--guix/profiles.scm6
1 files changed, 3 insertions, 3 deletions
diff --git a/guix/profiles.scm b/guix/profiles.scm
index e7319a8a10..96f8b65c3e 100644
--- a/guix/profiles.scm
+++ b/guix/profiles.scm
@@ -490,12 +490,12 @@ if not found."
inputs))
(define (find-among-store-items items)
(find (lambda (item)
- (let-values (((pkg-name pkg-version)
+ (let-values (((name* version*)
(package-name->name+version
(store-path-package-name item))))
- (and (equal? name pkg-name)
+ (and (string=? name name*)
(if version
- (string-prefix? version pkg-version)
+ (string-prefix? version version*)
#t))))
items))