Comment 8 for bug 364808

Revision history for this message
Igor Gomes (igorgomes) wrote :

I've debugged the whole procedure and got the following:

If started as I stated on the bug I got the attached debug trace. Notice the comparison (my command/debug line):

pbuilder create --distribution jaunty --othermirror "deb http://br.archive.ubuntu.com/ubuntu/ jaunty main restricted multiverse universe"
debootstrap --variant=buildd jaunty . http://archive.canonical.com/ubuntu

So, it was wrongly parsed my command into this line. Tracking the execution, I checked that the script pbuilder-checkparams get the OTHERMIRRORS option:

-----
 --othermirror)
     OTHERMIRROR="$2";
-----

But it is not used by pbuilder-createbuildenv (line 65):

-----
if ! ( cd "$BUILDPLACE" && "${DEBOOTSTRAP}" "${DEBOOTSTRAPOPTS[@]}" "$DISTRIBUTION" . "$MIRRORSITE" $DEBOOTSTRAPSCRIPT ) ; then
    echo "pbuilder: $DEBOOTSTRAP failed" >&2
    exit 1
fi
-----

Only mirror side is used.

This is way the wrong parse happens.

Igor Gomes