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

This reverts commit dce958ac39.
This commit is contained in:
adisbladis 2017-08-01 15:41:06 +08:00
parent 903d9daf0f
commit 283364a2fe
No known key found for this signature in database
GPG Key ID: ED58F95069B004F5

View File

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