Commit 33e5e5ae authored by Mattia Rizzolo's avatar Mattia Rizzolo

pbuilder script: correct handling of --debootstrapopts option and OTHER variable

parent b5b1f32b
...@@ -36,7 +36,7 @@ sett() { ...@@ -36,7 +36,7 @@ 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"
...@@ -51,7 +51,7 @@ sett() { ...@@ -51,7 +51,7 @@ sett() {
if [ "$TYPE" = "ubuntu" ] ; then if [ "$TYPE" = "ubuntu" ] ; then
MIRROR="http://ports.ubuntu.com" MIRROR="http://ports.ubuntu.com"
fi fi
OTHER+="--debootstrap qemu-debootstrap" OTHER+="--debootstrap qemu-debootstrap "
;; ;;
arm64) arm64)
(dpkg --print-foreign-architectures | grep arm64 > /dev/null 2>&1 && \ (dpkg --print-foreign-architectures | grep arm64 > /dev/null 2>&1 && \
...@@ -63,7 +63,7 @@ sett() { ...@@ -63,7 +63,7 @@ sett() {
if [ "$TYPE" = "ubuntu" ] ; then if [ "$TYPE" = "ubuntu" ] ; then
MIRROR="http://ports.ubuntu.com" MIRROR="http://ports.ubuntu.com"
fi fi
OTHER+="--debootstrap qemu-debootstrap" OTHER+="--debootstrap qemu-debootstrap "
;; ;;
esac esac
if [ ! -d $APTCACHE ] ; then if [ ! -d $APTCACHE ] ; then
......
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