Re: tasksel rewrite
On Tue, Jun 08, 2004 at 02:01:11PM -0400, Joey Hess wrote:
> I was bored on the plane back from DebConf4, so I rewrote tasksel. The
> new version uses debconf to ask the question about tasks. I also
> tightended up the criteria for tasks, which involved removing quite a
> few. And I made it automatically install a language task to match the
> language the user used for the install.
Nice work!
[snip]
Could you apply the small patch below (which rids the scripts
of XSI:isms)?
Regards: David Weinehall
--- tasksel-2.00/tests/lang.old 2004-06-13 23:23:21.000000000 +0300
+++ tasksel-2.00/tests/lang 2004-06-13 23:23:52.000000000 +0300
@@ -5,8 +5,8 @@
shift 1
baselang=$(expr "$LANG" : '\(.*\)_')
for locale in $@; do
- if [ -n "$LANG" -a "$LANG" = "$locale" ] || \
- [ -n "$baselang" -a "$baselang" = "$locale" ]; then
+ if ( [ -n "$LANG" ] && [ "$LANG" = "$locale" ] ) || \
+ ( [ -n "$baselang" ] && [ "$baselang" = "$locale" ] ); then
exit 0 # install without display
fi
done
Reply to: