#917158 qemubuilder mishandles multiple entries in OTHERMIRROR

Package:
qemubuilder
Source:
cowdancer
Description:
pbuilder using QEMU as backend
Submitter:
"Yuriy M. Kaminskiy"
Date:
2018-12-23 20:30:03 UTC
Severity:
normal
#917158#5
Date:
2018-12-23 11:57:17 UTC
From:
To:
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.

#917158#10
Date:
2018-12-23 20:26:50 UTC
From:
To:
... unfortunately, it is not sufficient. sanitize_mirror() function also
requires adjustments (I'm tempted to move it into shell/sed code, but
that will cause regressions in the corner cases).