pkg-get.pl: ensure that target rootfs has a copy of the installscripts

This commit is contained in:
John McQuah 2023-08-20 19:44:35 -04:00
parent 38c9a5ef1d
commit 719575d0fb
1 changed files with 5 additions and 4 deletions

View File

@ -816,10 +816,11 @@ sub upinst {
foreach my $repo(@repos) {
my ($dir, $url) = split(/\|/, $repo);
open(my $host, "$dir/PKGINST") or next;
open(my $mount, ">$root$dir/PKGINST");
while (<$host>) { print $mount $_; }
close($mount);
close($host);
( -d "$root$dir" ) or mkdir("$root$dir",0755);
open(my $mount, ">$root$dir/PKGINST");
while (<$host>) { print $mount $_; }
close($mount);
close($host);
}
}