diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2010-08-09 16:08:02 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2010-08-09 16:08:02 +0000 |
commit | e875ec25245337bb647ed76988d625986cb1ee71 (patch) | |
tree | e633c27ecdedbaf4416d2de794b65ad4e8e98e33 | |
parent | be3d5d34960322c3267de8f074c769e5446daf3a (diff) |
* Make sure that if pathsToLink contains an element such as
"/share/info" that it doesn't match "/share/information.nix". svn path=/nixpkgs/trunk/; revision=23059
-rwxr-xr-x | pkgs/build-support/buildenv/builder.pl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/build-support/buildenv/builder.pl b/pkgs/build-support/buildenv/builder.pl index a181d72ab834f..cdd65cbc523a0 100755 --- a/pkgs/build-support/buildenv/builder.pl +++ b/pkgs/build-support/buildenv/builder.pl @@ -17,7 +17,10 @@ sub isInPathsToLink { my $path = shift; $path = "/" if $path eq ""; foreach my $elem (@pathsToLink) { - return 1 if substr($path, 0, length($elem)) eq $elem; + return 1 if + $elem eq "/" || + (substr($path, 0, length($elem)) eq $elem + && (($path eq $elem) || (substr($path, length($elem), 1) eq "/"))); } return 0; } |