mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 05:56:15 +02:00
* Use old-school pipe opens; the new style is Perl >= 5.8.0.
This commit is contained in:
parent
981eff065b
commit
f4a502a09a
1 changed files with 3 additions and 2 deletions
|
@ -110,9 +110,10 @@ foreach my $expr (@exprs) {
|
|||
|
||||
# Instantiate.
|
||||
my @drvPaths;
|
||||
my $pid = open DRVPATHS, "-|", "@bindir@/nix-instantiate", "--add-root", $drvLink, "--indirect", @instArgs, $expr;
|
||||
# !!! would prefer the perl 5.8.0 pipe open feature here.
|
||||
my $pid = open(DRVPATHS, "-|") || exec "@bindir@/nix-instantiate", "--add-root", $drvLink, "--indirect", @instArgs, $expr;
|
||||
while (<DRVPATHS>) {chomp; push @drvPaths, $_;}
|
||||
close DRVPATHS or die;
|
||||
close DRVPATHS or exit 1;
|
||||
|
||||
foreach my $drvPath (@drvPaths) {
|
||||
my $target = readlink $drvPath;
|
||||
|
|
Loading…
Reference in a new issue