Bug 155331

Summary: sysstat-6.0.2: Files under /var/log/sa will be erased during normal package updates
Product: [openSUSE] SUSE Linux 10.1 Reporter: frank hollmann <frank.hollmann>
Component: OtherAssignee: Marian Jancar <mjancar>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: suse-beta
Version: Beta 6   
Target Milestone: ---   
Hardware: i686   
OS: SuSE Linux 10.1   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description frank hollmann 2006-03-05 22:05:42 UTC
According to the Spec-File for sysstat the cleanup in %preun does:

%preun
rm -f %{_var}/log/sa/*

Performance Date should not be deleted while updating a package.

Suggestion:

%preun
case ${1} in
   0) 
      printf "%s\n" "Uninstalling %{name} - removing sar Data in %{_var}/log/sa"
      %{__rm} -f %{_var}/log/sa/*
      ;;
esac
Comment 1 Marian Jancar 2006-03-06 13:09:02 UTC
The file format is not compatible across different versions.