Bug 10799

Summary: samba-common: %pre assumes samba package installed
Product: Sisyphus Reporter: Michael Shigorin <mike>
Component: samba-commonAssignee: Dmitry V. Levin <ldv>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: minor    
Priority: P2 CC: sin
Version: unstable   
Hardware: all   
OS: Linux   

Description Michael Shigorin 2007-02-08 14:44:27 MSK
Preparing...                                 
###################################################################################################
[100%]
service: smb: Unrecognized service
service: smb: Unrecognized service
1: samba-common                              
###################################################################################################
[ 25%]

$ rpm -q --scripts samba-common | grep service
    smbstopped=$(/sbin/service smb status|grep stopped)
    wnbstopped=$(/sbin/service winbind status|grep stopped)
    [ -n "$smbstopped" ] || /sbin/service smb stop
    [ -n "$wnbstopped" ] || /sbin/service winbind stop
    /usr/sbin/post_service winbind
/usr/sbin/preun_service winbind

$ rpm -q samba
warning: package samba is not installed

---

Might make sense to [ -x /etc/init.d/smb ] first and if absent, skip any
attempted actions.  A patch sir? :)
Comment 1 Dmitry V. Levin 2007-04-18 01:17:56 MSD
my
Comment 2 Dmitry V. Levin 2007-04-18 01:18:13 MSD
Fixed in 3.0.24-alt2