[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#272161: Syntax errors in postinst



Package: countrychooser
Version: 1.03

Please apply the attached patch against the postinst.
This will get rid of the following message in the syslog for the 
installation after countrychooser has run:

main-menu (process: 9999): [ :
main-menu (process: 9999): -n: argument expected
main-menu (process: 9999):

--- postinst	2004-09-14 01:09:50.000000000 +0200
+++ new/postinst	2004-09-17 23:51:44.000000000 +0200
@@ -260,7 +260,7 @@
 		      -a \
 		      "${LANGUAGE}_${COUNTRYCODE}" != "${LOCALE_LANGUAGECHOOSER}" \
 		      -a \
-		      -n ${LOCALE_LANGUAGECHOOSER_COMPLETE} \
+		      -n "${LOCALE_LANGUAGECHOOSER_COMPLETE}" \
 		    ] ;  then
 		    # In details : we revert back to the locale
 		    # defined in languagechooser if countrychooser
@@ -294,7 +294,7 @@
 #    "ar_SY:ar_EG:ar:en_UC:en"
 # We shouldn't just add this before the former list in case the country 
 # is changed several times.
-if [ "$COUNTRYCODE" != "$COUNTRYCODE_LANGUAGECHOOSER" -a -n "$COUNTRYCODE" -a -n $LANGUAGE ]; then
+if [ "$COUNTRYCODE" != "$COUNTRYCODE_LANGUAGECHOOSER" -a -n "$COUNTRYCODE" -a -n "$LANGUAGE" ]; then
 	LANGUAGELIST=${LANGUAGE}_${COUNTRYCODE}:${LANGUAGELIST}
 	# Languagelist setting
 	db_set "$languagecode" "$LANGUAGELIST"

Reply to: