Bug 75137 - Bug in spec/preuninstall - Deinstallation shows an error
Summary: Bug in spec/preuninstall - Deinstallation shows an error
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: vixie-cron
Version: 8.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jens Petersen
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-10-04 19:02 UTC by Peter Bieringer
Modified: 2007-04-18 16:47 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2003-03-19 07:56:17 UTC
Embargoed:


Attachments (Terms of Use)

Description Peter Bieringer 2002-10-04 19:02:07 UTC
Description of problem:
Deinstallation of vixie-cron shows an error, bug in preuninstall scriptlet in
spec file

Version-Release number of selected component (if applicable):
vixie-cron-3.0.1-69.i386.rpm


How reproducible:
Always

Steps to Reproduce:
1. rpm -e vixie-cron
	

Actual Results:  # rpm -e vixie-cron
/var/tmp/rpm-tmp.69851: line 2: [: missing `]'

Expected Results:  Not such problem

Additional info:

preuninstall scriptlet (through /bin/sh):
if [ "$1" = 0 ]; then
    [ -f /var/lock/subsys/crond] && /sbin/service crond stop >/dev/null 2>&1
    /sbin/chkconfig --del crond
fi

Fix:

-    [ -f /var/lock/subsys/crond] && /sbin/service crond stop >/dev/null 2>&1
+    [ -f /var/lock/subsys/crond ] && /sbin/service crond stop >/dev/null 2>&1

Comment 1 Jens Petersen 2003-02-19 13:43:34 UTC
Thanks for the report. Should be fixed in 3.0.1-74.
Please confirm.


Note You need to log in before you can comment on or make changes to this bug.