buildenv: read propagated-user-env-packages line-by-line

Since 3cb745d5a6, the format of
propagated-user-env-packages has changed and propagated packages have not been
included by buildenv, including in the system environment.

The buildenv builder is modified to read propagated-user-env-packages
line-by-line, instead of expecting all packages on one line.
This commit is contained in:
Thomas Tuegel 2017-07-16 11:39:40 -05:00
parent ae26f291bc
commit dce958ac39
No known key found for this signature in database
GPG Key ID: 22CBF5249D4B4D59

View File

@ -141,12 +141,11 @@ sub addPkg {
my $propagatedFN = "$pkgDir/nix-support/propagated-user-env-packages";
if (-e $propagatedFN) {
open PROP, "<$propagatedFN" or die;
my $propagated = <PROP>;
close PROP;
my @propagated = split ' ', $propagated;
foreach my $p (@propagated) {
while (my $p = <PROP>) {
chomp $p;
$postponed{$p} = 1 unless defined $done{$p};
}
close PROP;
}
}