Commit 35172230 authored by Markus Frosch's avatar Markus Frosch

Updated ucs-cowbuilder.sh

parent e008181a
......@@ -72,6 +72,10 @@ ONLINEREPOS=(
"deb http://updates.software-univention.de/3.2/maintained/ 3.2-0/all/"
"deb http://updates.software-univention.de/3.2/unmaintained/ 3.2-0/<ARCH>/"
"deb http://updates.software-univention.de/3.2/unmaintained/ 3.2-0/all/"
"deb http://updates.software-univention.de/3.2/maintained/ 3.2-1/<ARCH>/"
"deb http://updates.software-univention.de/3.2/maintained/ 3.2-1/all/"
"deb http://updates.software-univention.de/3.2/unmaintained/ 3.2-1/<ARCH>/"
"deb http://updates.software-univention.de/3.2/unmaintained/ 3.2-1/all/"
)
##[ FUNCTIONS ]################################################################
......@@ -123,7 +127,7 @@ while [ "$1" != "" ]; do
ARGS=("$1" ${ARGS[@]})
;;
*)
ARGS=($ARGS "$1")
ARGS=(${ARGS[@]} "$1")
;;
esac
shift
......@@ -148,6 +152,9 @@ if [ "$MODE" = "create" ]; then
rm -rf "$BASE"
fi
fi
if [ "$MODE" = "create" ] || [ "$MODE" = "update" ]; then
# build othermirrors
OTHERMIRRORS=""
for mirror in "${ONLINEREPOS[@]}"; do
......@@ -158,10 +165,11 @@ if [ "$MODE" = "create" ]; then
fi
echo "Creating chroot with cowbuilder..."
if [ "$MODE" = "create" ]; then
if [ "$MODE" = "create" ] || [ "$MODE" = "update" ]; then
set -x
/usr/sbin/cowbuilder --$MODE \
--basepath "$BASE" \
--override-config \
--mirror "$REPO/$ARCH/packages" \
--othermirror "$OTHERMIRRORS" ${ARGS[@]}
else
......
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