Title | Uninstalling the RPM before running the P4DTI fails |
Status | suspended |
Priority | optional |
Assigned user | Nick Barnes |
Organization | Ravenbrook |
Description | Trying to uninstall the P4DTI RPM immediately after installing (before running it) fails (apparently because it can't find /opt/p4dti/bin/p4dti.log). |
Analysis | This seems to be the [ -f $i ] line in the preuninstall script. It looks OK to me, but it's failing. I suggest using an if test here. I don't know enough about RPM to comment further. |
How found | manual_test |
Evidence | Here's part of a shell transcript that demonstrates the problem, and shows that it is caused by the absence of the p4dti.log file: [root@swan p4dti]# rpm -i /home/nb/info.ravenbrook.com/project/p4dti/release/1.0.2/p4dti-1.0.2-1.i386.rpm [root@swan p4dti]# rpm -e p4dti execution of script failed [root@swan p4dti]# touch /opt/p4dti/bin/p4dti.log [root@swan p4dti]# rpm -e p4dti uid=220(p4dti) gid=220(p4dti) groups=220(p4dti) [root@swan p4dti]# rpm -i /home/nb/info.ravenbrook.com/project/p4dti/release/1.0.2/p4dti-1.0.2-1.i386.rpm [root@swan p4dti]# rpm -evv p4dti D: opening database mode 0x82 in /var/lib/rpm D: getting list of mounted filesystems ++ ls /opt/p4dti/bin/*.pyc + [ -f /opt/p4dti/bin/p4dti.log ] execution of script failed [root@swan p4dti]# touch /opt/p4dti/bin/p4dti.log [root@swan p4dti]# rpm -evv p4dti D: opening database mode 0x82 in /var/lib/rpm D: getting list of mounted filesystems ++ ls /opt/p4dti/bin/*.pyc + [ -f /opt/p4dti/bin/p4dti.log ] + rm /opt/p4dti/bin/p4dti.log D: will remove files test = 0 D: file: /usr/doc/p4dti-1.0.2/ug/tt-version-control.gif action: remove D: file: /usr/doc/p4dti-1.0.2/ug/p4win-submitted-changelists.gif action: remove D: file: /usr/doc/p4dti-1.0.2/ug/p4win-submit-dialog.gif action: remove D: file: /usr/doc/p4dti-1.0.2/ug/p4win-show-fixes.gif action: remove D: file: /usr/doc/p4dti-1.0.2/ug/p4win-pending-changelist.gif action: remove D: file: /usr/doc/p4dti-1.0.2/ug/p4win-new-change.gif action: remove D: file: /usr/doc/p4dti-1.0.2/ug/p4win-job-pane.gif action: remove D: file: /usr/doc/p4dti-1.0.2/ug/p4win-job-filter-dialog.gif action: remove D: file: /usr/doc/p4dti-1.0.2/ug/p4win-edit |
Observed in | 1.0.2 |
Introduced in | 1.0.0 |
Created by | Nick Barnes |
Created on | 2001-03-05 12:56:59 |
Last modified by | Nick Barnes |
Last modified on | 2018-07-05 17:27:32 |
History | 2001-03-05 NB Created. 2001-03-25 RB Downgraded to optional. 2018-07-05 NB Suspended because the P4DTI is obsolete. |