slight cleanup in update_tasks

This commit is contained in:
cd-builder user 2008-10-12 23:08:57 +00:00
parent e2d764123c
commit 59e4f05035
1 changed files with 13 additions and 1 deletions

View File

@ -7,11 +7,20 @@ if [ -z "$CODENAME" ]; then
exit 1
fi
if [ "$MIRROR"x == ""x ] ; then
if [ "$MIRROR"x = ""x ] ; then
echo "update_tasks needs to know where the mirror is" >&2
exit 1
fi
if [ "$BDIR"x = ""x ] ; then
if [ "$TMPDIR"x = ""x ] ; then
TMPDIR=/tmp
export TMPDIR
fi
echo "update_tasks not given a temp dir, using $TMPDIR" >&2
BDIR=$TMPDIR
fi
update_full_list () {
file=$1
tasklist=$2
@ -145,3 +154,6 @@ update_full_list tasks/task-full-$CODENAME-kde \
update_full_list tasks/task-full-$CODENAME-xfce \
tasks/task.list.xfce $TMP_PKG
rm -f $TMP_PKG