Package: qemubuilder
Version: 0.87
Severity: normal
Tags: patch
Dear Maintainer,
When OTHERMIRROR contains multiple entries, separated by | character (as
documented in pbuilderrc(5)), qemubuilder fails to handle them and
produces incorrect /etc/apt/sources.list.d/other.list file, resulting in
E: Malformed entry 1 in list file /etc/apt/sources.list.d/other.list
(absolute Suite Component).
on `qemubuilder create`. Trivial patch attached.
-- System Information:
Debian Release: 9.6
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-debug'), (500,
'proposed-updates-debug'), (500, 'proposed-updates'), (500, 'stable')
Architecture: i386 (x86_64)
Foreign Architectures: amd64
Kernel: Linux 4.9.0-6-amd64 (SMP w/2 CPU cores)
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R),
LANGUAGE=ru_RU.KOI8-R (charmap=KOI8-R)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages qemubuilder depends on:
ii debootstrap 1.0.89
ii e2fsprogs 1.43.4-2
ii libc6 2.24-11+deb9u3
ii libncurses5 6.0+20161126-1+deb9u2
ii libtinfo5 6.0+20161126-1+deb9u2
ii pbuilder 0.228.7
ii qemu-system 1:2.8+dfsg-6+deb9u5
qemubuilder recommends no packages.
qemubuilder suggests no packages.
-- no debconf information
diff -Nru cowdancer-0.87~bpo9+1/qemubuilder.c
cowdancer-0.87~bpo9+1.1~local1/qemubuilder.c
--- cowdancer-0.87~bpo9+1/qemubuilder.c 2017-01-18 21:46:49.000000000 +0300
+++ cowdancer-0.87~bpo9+1.1~local1/qemubuilder.c 2018-12-23
00:44:42.000000000 +0300
@@ -1185,7 +1185,7 @@
"$BUILDDIR/input/run-copyfiles\n"
"hostname pbuilder-$(cat /etc/hostname)\n"
//TODO: installaptlines
- "echo '%s' > /etc/apt/sources.list.d/other.list\n"
+ "echo '%s' | tr '|' '\\n' >
/etc/apt/sources.list.d/other.list\n"
EXECUTE_HOOKS("G")
"apt-get update || exit_from_qemu 1\n"
//TODO: "dpkg --purge $REMOVEPACKAGES\n"