Commit 945c68b8 authored by Mattia Rizzolo's avatar Mattia Rizzolo

add armhf, armel support (hoping)

parent 13ca03d1
...@@ -9,6 +9,7 @@ OPERATION=$1 ...@@ -9,6 +9,7 @@ OPERATION=$1
COMMAND=`echo $@|sed s/$OPERATION//` COMMAND=`echo $@|sed s/$OPERATION//`
BASE_DIR="$HOME/pbuilder" BASE_DIR="$HOME/pbuilder"
APTCACHE="$BASE_DIR/cache/apt/$DIST-$ARCH" APTCACHE="$BASE_DIR/cache/apt/$DIST-$ARCH"
OTHER=""
type() { type() {
contains() { contains() {
...@@ -35,13 +36,21 @@ sett() { ...@@ -35,13 +36,21 @@ sett() {
debian) debian)
MIRROR="http://http.debian.net/debian" MIRROR="http://http.debian.net/debian"
COMPONENTS="main contrib" COMPONENTS="main contrib"
OTHER='--debootstrapopts "--keyring=/usr/share/keyrings/debian-archive-keyring.gpg"' OTHER+='--debootstrapopts "--keyring=/usr/share/keyrings/debian-archive-keyring.gpg"'
;; ;;
ubuntu) ubuntu)
MIRROR="http://archive.ubuntu.com/ubuntu" MIRROR="http://archive.ubuntu.com/ubuntu"
COMPONENTS="main universe multiverse" COMPONENTS="main universe multiverse"
;; ;;
esac esac
case $ARCH in
armhf|armel)
if [$TYPE -eq "ubuntu"] ; then
MIRROR="http://ports.ubuntu.com"
fi
OTHER+="--debootstrap qemu-debootstrap"
;;
esac
if [ ! -d $APTCACHE ] ; then if [ ! -d $APTCACHE ] ; then
mkdir -p $APTCACHE mkdir -p $APTCACHE
fi fi
......
pbuilder-common
\ No newline at end of file
pbuilder-common
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment