forked from lix-project/hydra
Fix Perl warning about $path masking earlier definition
This commit is contained in:
parent
8e246a835a
commit
f4ecf27def
|
@ -170,9 +170,9 @@ sub defaultUriForProduct {
|
||||||
|
|
||||||
sub checkPath {
|
sub checkPath {
|
||||||
my ($self, $c, $path) = @_;
|
my ($self, $c, $path) = @_;
|
||||||
my $path = pathIsInsidePrefix($path, $Nix::Config::storeDir);
|
my $p = pathIsInsidePrefix($path, $Nix::Config::storeDir);
|
||||||
error($c, "Build product refers outside of the Nix store.") unless defined $path;
|
error($c, "Build product refers outside of the Nix store.") unless defined $p;
|
||||||
return $path;
|
return $p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue