re-indent for consistency
This commit is contained in:
parent
c5e871279b
commit
6a65e48806
|
@ -3,8 +3,8 @@ set -e
|
||||||
|
|
||||||
CODENAME="$1"
|
CODENAME="$1"
|
||||||
if [ -z "$CODENAME" ]; then
|
if [ -z "$CODENAME" ]; then
|
||||||
echo "usage: update_tasks CODENAME" >&2
|
echo "usage: update_tasks CODENAME" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$MIRROR"x == ""x ] ; then
|
if [ "$MIRROR"x == ""x ] ; then
|
||||||
|
@ -13,8 +13,8 @@ if [ "$MIRROR"x == ""x ] ; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
update_full_list () {
|
update_full_list () {
|
||||||
file=$1
|
file=$1
|
||||||
tasklist=$2
|
tasklist=$2
|
||||||
pkgfile=$3
|
pkgfile=$3
|
||||||
|
|
||||||
grep '\*' $file > $file.new
|
grep '\*' $file > $file.new
|
||||||
|
@ -47,26 +47,26 @@ update_full_list () {
|
||||||
}
|
}
|
||||||
next
|
next
|
||||||
}' | sort -u >> $file.new
|
}' | sort -u >> $file.new
|
||||||
mv $file.new $file
|
mv $file.new $file
|
||||||
}
|
}
|
||||||
|
|
||||||
update_essential_list () {
|
update_essential_list () {
|
||||||
file=$1
|
file=$1
|
||||||
tasklist=$2
|
tasklist=$2
|
||||||
desktoptask=$3
|
desktoptask=$3
|
||||||
tasksel=$4
|
tasksel=$4
|
||||||
|
|
||||||
grep '\*' $file > $file.new
|
grep '\*' $file > $file.new
|
||||||
for i in $(grep -Ev "^(#.*)?[[:space:]]*$" $tasklist); do
|
for i in $(grep -Ev "^(#.*)?[[:space:]]*$" $tasklist); do
|
||||||
if ( [ "$i" != gnome-dekstop ] &&
|
if ( [ "$i" != gnome-dekstop ] &&
|
||||||
[ "$i" != kde-desktop ] &&
|
[ "$i" != kde-desktop ] &&
|
||||||
[ "$i" != xfce-desktop ] ) ||
|
[ "$i" != xfce-desktop ] ) ||
|
||||||
[ "$i" = "$desktoptask" ]; then
|
[ "$i" = "$desktoptask" ]; then
|
||||||
grep-dctrl -F Task -e "^$i$" $tasksel/usr/share/tasksel/debian-tasks.desc |
|
grep-dctrl -F Task -e "^$i$" $tasksel/usr/share/tasksel/debian-tasks.desc |
|
||||||
grep-dctrl -s Key -n -e '.*';
|
grep-dctrl -s Key -n -e '.*';
|
||||||
fi
|
fi
|
||||||
done | sed -e 's? *??' | grep -v ^$ >> $file.new
|
done | sed -e 's? *??' | grep -v ^$ >> $file.new
|
||||||
mv $file.new $file
|
mv $file.new $file
|
||||||
}
|
}
|
||||||
|
|
||||||
# We need to gunzip a copy of the appropriate Packages.gz file
|
# We need to gunzip a copy of the appropriate Packages.gz file
|
||||||
|
|
Loading…
Reference in New Issue