Stop creating /etc/dpkg/dpkg.cfg.d/multiarch (closes: #819103)
This commit is contained in:
parent
2d1a5dc6fa
commit
67c12d18e3
2 changed files with 6 additions and 15 deletions
1
debian/changelog
vendored
1
debian/changelog
vendored
|
@ -13,6 +13,7 @@ multistrap (2.2.2) UNRELEASED; urgency=medium
|
||||||
* Allow uppercase letters in paths (closes: #751896)
|
* Allow uppercase letters in paths (closes: #751896)
|
||||||
* Allow shell special characters (including spaces) in paths (closes:
|
* Allow shell special characters (including spaces) in paths (closes:
|
||||||
#803365)
|
#803365)
|
||||||
|
* Stop creating /etc/dpkg/dpkg.cfg.d/multiarch (closes: #819103)
|
||||||
|
|
||||||
-- Johannes Schauer <josch@debian.org> Fri, 02 Dec 2016 23:25:07 +0100
|
-- Johannes Schauer <josch@debian.org> Fri, 02 Dec 2016 23:25:07 +0100
|
||||||
|
|
||||||
|
|
20
multistrap
20
multistrap
|
@ -202,22 +202,12 @@ if (not -d "${dir}dev") {
|
||||||
mkdir_fatal ("${dir}dev");
|
mkdir_fatal ("${dir}dev");
|
||||||
}
|
}
|
||||||
if (($olddpkg == 0) and (scalar (@foreignarches) > 0)) {
|
if (($olddpkg == 0) and (scalar (@foreignarches) > 0)) {
|
||||||
if (not -d "${dir}etc/dpkg/dpkg.cfg.d/") {
|
open (VMA, ">${dir}${dpkgdir}arch");
|
||||||
system_fatal ("mkdir -p " . shellescape("${dir}etc/dpkg/dpkg.cfg.d/"));
|
print VMA "$host\n";
|
||||||
}
|
foreach my $farch (@foreignarches) {
|
||||||
if (not -f "${dir}etc/dpkg/dpkg.cfg.d/multiarch") {
|
print VMA "$farch\n";
|
||||||
open (MA, ">${dir}etc/dpkg/dpkg.cfg.d/multiarch");
|
|
||||||
foreach my $farch (@foreignarches) {
|
|
||||||
print MA "foreign-architecture $farch\n";
|
|
||||||
}
|
|
||||||
close (MA);
|
|
||||||
open (VMA, ">${dir}${dpkgdir}arch");
|
|
||||||
print VMA "$host\n";
|
|
||||||
foreach my $farch (@foreignarches) {
|
|
||||||
print VMA "$farch\n";
|
|
||||||
}
|
|
||||||
close (VMA);
|
|
||||||
}
|
}
|
||||||
|
close (VMA);
|
||||||
}
|
}
|
||||||
|
|
||||||
&guard_lib64($dir);
|
&guard_lib64($dir);
|
||||||
|
|
Loading…
Reference in a new issue