Source: isoqlog Version: 2.2.1-7 Severity: important Tags: patch
If isoqlog is installed non-interactively (with debconf UI "noninteractive" or with debconf priority critical), langfile in the generated configuration file is incorrect:
# apt-get install -qq isoqlog debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package isoqlog. (Reading database ... 10703 files and directories currently installed.) Unpacking isoqlog (from .../isoqlog_2.2.1-7_i386.deb) ... Setting up isoqlog (2.2.1-7) ... # grep langfile /etc/isoqlog/isoqlog.conf langfile = "/usr/share/isoqlog/lang/English" # ls -l /usr/share/isoqlog/lang/English ls: cannot access /usr/share/isoqlog/lang/English: No such file or directory The attached patch fixes this bug. -- Jakub Wilk
diff -Nru isoqlog-2.2.1/debian/config isoqlog-2.2.1/debian/config --- isoqlog-2.2.1/debian/config 2012-01-02 20:02:55.000000000 +0100 +++ isoqlog-2.2.1/debian/config 2012-04-24 10:48:50.000000000 +0200 @@ -49,9 +49,6 @@ $noninteractive = (((input("high", "isoqlog/main_langfile"))[0]) == 30); if (!$noninteractive) { go(); - $lang = get("isoqlog/main_langfile"); - $lang = lcfirst($lang); - set("isoqlog/main_langfile", $lang); } $topstate = "domains"; } diff -Nru isoqlog-2.2.1/debian/postinst isoqlog-2.2.1/debian/postinst --- isoqlog-2.2.1/debian/postinst 2012-01-02 20:02:55.000000000 +0100 +++ isoqlog-2.2.1/debian/postinst 2012-04-24 10:54:26.000000000 +0200 @@ -12,7 +12,7 @@ db_get isoqlog/main_logtype && logtype="$RET" db_get isoqlog/main_outputdir && outputdir="$RET" db_get isoqlog/main_hostname && hostname="$RET" - db_get isoqlog/main_langfile && langfile="$RET" + db_get isoqlog/main_langfile && langfile=$(echo "$RET" | LC_ALL=C tr 'A-Z' 'a-z') db_get isoqlog/main_domains && domains="$RET" if [ "$logtype" = "sendmail" ]; then