pkg-get.pl: ensure that target rootfs has a copy of the installscripts
This commit is contained in:
parent
38c9a5ef1d
commit
719575d0fb
@ -816,10 +816,11 @@ sub upinst {
|
|||||||
foreach my $repo(@repos) {
|
foreach my $repo(@repos) {
|
||||||
my ($dir, $url) = split(/\|/, $repo);
|
my ($dir, $url) = split(/\|/, $repo);
|
||||||
open(my $host, "$dir/PKGINST") or next;
|
open(my $host, "$dir/PKGINST") or next;
|
||||||
open(my $mount, ">$root$dir/PKGINST");
|
( -d "$root$dir" ) or mkdir("$root$dir",0755);
|
||||||
while (<$host>) { print $mount $_; }
|
open(my $mount, ">$root$dir/PKGINST");
|
||||||
close($mount);
|
while (<$host>) { print $mount $_; }
|
||||||
close($host);
|
close($mount);
|
||||||
|
close($host);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user