forked from josch/mmdebstrap
create an empty /var/lib/dpkg/available as otherwise dpkg fails on package removal
This commit is contained in:
parent
1e0b4cb3b0
commit
418b42746e
1 changed files with 7 additions and 0 deletions
|
@ -657,6 +657,13 @@ sub setup {
|
||||||
close $fh;
|
close $fh;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# /var/lib/dpkg/available is required to exist or otherwise package
|
||||||
|
# removals will fail
|
||||||
|
{
|
||||||
|
open my $fh, '>', "$options->{root}/var/lib/dpkg/available" or die "failed to open(): $!";
|
||||||
|
close $fh;
|
||||||
|
}
|
||||||
|
|
||||||
if (scalar @{$options->{foreignarchs}} > 0) {
|
if (scalar @{$options->{foreignarchs}} > 0) {
|
||||||
open my $fh, '>', "$options->{root}/var/lib/dpkg/arch" or die "cannot open /var/lib/dpkg/arch: $!";
|
open my $fh, '>', "$options->{root}/var/lib/dpkg/arch" or die "cannot open /var/lib/dpkg/arch: $!";
|
||||||
print $fh "$options->{nativearch}\n";
|
print $fh "$options->{nativearch}\n";
|
||||||
|
|
Loading…
Reference in a new issue