From f3e5f01db56dd1ed1ed0b52810e81be3917e64a5 Mon Sep 17 00:00:00 2001 From: Jakub Filak Date: Apr 14 2015 06:35:34 +0000 Subject: Remove a no longer needed posttrans scriptlet The scriptlet was making a copy of 'analyzer' file to 'type' file, because there was no 'type' file long time ago, a new version started requiring that element, thus we had to add a scriptlet creating that problem element for the problems detected by older versions of abrt (prior abrt-2.5.0, contents of analyzer was the same as contents of type). --- diff --git a/abrt.spec b/abrt.spec index 0eda5c5..5ba41bd 100644 --- a/abrt.spec +++ b/abrt.spec @@ -46,7 +46,7 @@ Summary: Automatic bug detection and reporting tool Name: abrt Version: 2.5.1 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2+ Group: Applications/System URL: https://github.com/abrt/abrt/wiki/ABRT-Project @@ -647,8 +647,6 @@ if [ $1 -eq 0 ] ; then fi %posttrans -# update the old problem dirs to contain "type" element -abrtdir=$(grep "DumpLocation" /etc/abrt/abrt.conf | cut -d'=' -f2 | tr -d ' '); cd $abrtdir 2>/dev/null && for i in `find . -name "analyzer" 2>/dev/null`; do len=${#i};cp "$i" "${i:0:$len-9}/type"; done; for i in `find "$abrtdir" -mindepth 1 -maxdepth 1 -type d`; do chown `stat --format=%U:abrt $i` $i/*; done service abrtd condrestart >/dev/null 2>&1 || : %posttrans addon-ccpp @@ -1024,6 +1022,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %config(noreplace) %{_sysconfdir}/profile.d/abrt-console-notification.sh %changelog +* Mon Apr 13 2015 Jakub Filak 2.5.1-2 +- Remove no longer needed posttrans scriptlet copying analyzer to type + * Thu Apr 09 2015 Jakub Filak 2.5.1-1 - Translation updates - problem: use 'type' element instead of 'analyzer'