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) {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user