Hi

I'm trying to create multiple pbuilders, as described in
https://wiki.ubuntu.com/PbuilderHowto. I'm using the exact pbuilderrc
mentioned in the howto, but with intrepid added to the list of possible
values for DIST. It's not working. For some reason my .pbuilderrc is
ignored. For example, if I do

[EMAIL PROTECTED]:~$ DIST=blah sudo pbuilder create

I expect it to say "unknown distribution blah", but instead I get:

Distribution is hardy.
Building the build environment
 -> running debootstrap
/usr/sbin/debootstrap
I: Retrieving Release
I: Retrieving Packages
...

What am I doing wrong? This used to work before I upgraded to hardy. For
completeness, below is the .pbuilderrc I'm using.

thanks in advance,
Martijn

#BINDMOUNTS="/usr/local/src/archive"

# The distribution should be correct in your changelog file.
# Uncomment this line to use the one listed there:
#DIST=`dpkg-parsechangelog | awk '/^Distribution: / {print $2}'`

: ${DIST:=$(lsb_release --short --codename)}
: ${ARCH:=$(dpkg --print-architecture)}
NAME="$DIST-$ARCH"
DISTRIBUTION="$DIST"
DEBOOTSTRAPOPTS=("--arch" "$ARCH" "[EMAIL PROTECTED]")
BASETGZ="`dirname $BASETGZ`/$NAME-base.tgz"
BUILDRESULT="/var/cache/pbuilder/$NAME/result/"
APTCACHE="/var/cache/pbuilder/$NAME/aptcache/"

case "$DIST" in
    intrepid|hardy|gutsy) # ubuntu specific
        MIRRORSITE="http://mirrors.kernel.org/ubuntu/";
        COMPONENTS="main restricted universe multiverse"
        ;;
    sid|lenny|etch) # debian specific
        MIRRORSITE="http://mirrors.kernel.org/debian/";
        COMPONENTS="main contrib non-free"
        ;;
    *)
        echo "Unknown distribution: $DIST"
        exit 1
        ;;
esac




-- 
Ubuntu-motu mailing list
Ubuntu-motu@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-motu

Reply via email to