Skip to content

Commit

Permalink
haskell-packages: fix all-cabal-hashes component lookup
Browse files Browse the repository at this point in the history
Previously, if a package name in a later component was a substring of a package name in an earlier component, the earlier component would be selected due to a partial-name match.  This commit prevents partial matches.
  • Loading branch information
Ryan Trinkle committed Oct 24, 2017
1 parent 646a777 commit 1606857
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/development/haskell-modules/make-package-set.nix
Expand Up @@ -122,7 +122,7 @@ let
''
set +o pipefail
for component in ${all-cabal-hashes}/*; do
if ls $component | grep -q ${name}; then
if ls $component | grep -q "^${name}$"; then
echo "builtins.storePath $component" > $out
exit 0
fi
Expand Down

0 comments on commit 1606857

Please sign in to comment.