Package: doc-base Version: 0.7.21 Severity: normal
Consider the following transcript: [EMAIL PROTECTED]/]# DEBUG=true [EMAIL PROTECTED]/]# export DEBUG [EMAIL PROTECTED]/]# apt-get --purge remove doc-base Reading package lists... Done Building dependency tree... Done The following packages will be REMOVED: doc-base* 0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded. Need to get 0B of archives. After unpacking 184kB disk space will be freed. Do you want to continue [Y/n]? (Reading database ... 103699 files and directories currently installed.) Removing doc-base ... entering doc-base prerm + case "$1" in + remove_all_docs + which install-docs + echo 'unregistering documentation ...' unregistering documentation ... [...] + for file in '/var/lib/doc-base/info/*.status' ++ basename /var/lib/doc-base/info/URLView Manual.status .status basename: extra operand `.status' Try `basename --help' for more information. + install-docs -r argument missing for `remove' + true The prerm script does not correctly handle .status files that contain whitespace. Whether .status files *should* contain whitespace is another matter; currently urlview (and possibly others) provide such files, and basename does not handle them correctly. To fix this, line 27 of the prerm script should be changed from install-docs -r `basename $file .status` || true to install-docs -r "`basename "$file" .status`" || true PS: line 30 of the prerm script has a grammatical error. It reads # error because we this *is* the doc-base package It should read # error because this *is* the doc-base package -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/dash Kernel: Linux 2.6.15-1-686-smp Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]