jfilak pushed to abrt (master). "Remove a no longer needed posttrans scriptlet (..more)"
notifications at fedoraproject.org
notifications at fedoraproject.org
Mon Apr 13 11:42:39 UTC 2015
>From b72e3399f7a1cbe59eb9bafd46fcaac7d2fffad3 Mon Sep 17 00:00:00 2001
From: Jakub Filak <jfilak at redhat.com>
Date: Mon, 13 Apr 2015 10:37:20 +0200
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 30a1902..a45b174 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 <jfilak at redhat.com> 2.5.1-2
+- Remove no longer needed posttrans scriptlet copying analyzer to type
+
* Thu Apr 09 2015 Jakub Filak <jfilak at redhat.com> 2.5.1-1
- Translation updates
- problem: use 'type' element instead of 'analyzer'
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/abrt.git/commit/?h=master&id=b72e3399f7a1cbe59eb9bafd46fcaac7d2fffad3
More information about the scm-commits
mailing list