[hardy] tirc prerm script has syntax error; causes failure on uninstall
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tirc (Ubuntu) |
Won't Fix
|
Low
|
Unassigned | ||
Hardy |
Fix Released
|
Low
|
Unassigned |
Bug Description
Binary package hint: tirc
steve@h-
Distributor ID: Ubuntu
Description: Ubuntu 8.04.1
Release: 8.04
Codename: hardy
steve@h-
tirc:
Installed: 1.2-11
Candidate: 1.2-11
Version table:
*** 1.2-11 0
500 http://
100 /var/lib/
steve@h-
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
tirc
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 385kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 329810 files and directories currently installed.)
Removing tirc ...
[: 11: missing ]
/var/lib/
Looking at the contents of /var/lib/
if [ \( "$1" = "upgrade" || "$1" = "remove" \) -a -L /usr/doc/$pkg ]; then
rm -f /usr/doc/$pkg
fi
Unfortunately, while || is valid for or'ing the result of two programs,
it does not work inside of a test/'[' statement; -o needs to be used
instead; i.e. the code needs to be changed to:
--- /var/lib/
+++ /var/lib/
@@ -6,6 +6,6 @@
pkg=tirc
-if [ \( "$1" = "upgrade" || "$1" = "remove" \) -a -L /usr/doc/$pkg ]; then
+if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/$pkg ]; then
rm -f /usr/doc/$pkg
fi
While tirc has been dropped from intrepid, I noticed this in
a test upgrade from hardy to the intrepid beta.
Related branches
Changed in tirc: | |
assignee: | nobody → andrewsomething |
importance: | Undecided → Low |
status: | New → Confirmed |
This has been deleted in Intrepid, marking as won't fix.
Anyway, this could be fixed for Hardy, ACK from motu-sru.