Hi XTaran,

this is an easily circumvented issue:


setuptofail() {
        # this makes cowbuilder succeed and pbuilder fail
        for i in "${BASH_SOURCE[@]}"; do
                case $i in
                */pbuilder-loadconfig)
                        echo >&2 "E: MirDebian pbuilderrc: aborting"
                        echo >&2
                        exit 1
                        ;;
                esac
        done
        export BASEPATH=/var/cache/pbuilder/result
}
# […]
if test x"$ARCHITECTURE" = x"$(dpkg-architecture -qDEB_HOST_ARCH \
    -a"$ARCHITECTURE" 2>/dev/null)"; then
        : $ARCHITECTURE is a valid Debian architecture
else
        echo >&2 "E: Unknown Debian architecture: '$ARCHITECTURE'"
        setuptofail
        return
fi


See: https://www.mirbsd.org/cvs.cgi/contrib/hosted/tg/deb/pbuilderrc?rev=HEAD
The way to make it fail is because /var/cache/pbuilder/result
does not contain a valid chroot.

bye,
//mirabilos
-- 
Yay for having to rewrite other people's Bash scripts because bash
suddenly stopped supporting the bash extensions they make use of
        -- Tonnerre Lombard in #nosec


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to