[packages/poldek] use macro

glen glen at pld-linux.org
Sun May 31 18:43:29 CEST 2015


commit 1e921240da284740dd8d658af76fa13d9950b4db
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun May 31 19:43:24 2015 +0300

    use macro

 poldek.spec | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/poldek.spec b/poldek.spec
index e4797f1..1addcea 100644
--- a/poldek.spec
+++ b/poldek.spec
@@ -465,10 +465,10 @@ fi
 %triggerpostun -- %{name} < 0.30.1-8
 if [ $1 -le 1 ]; then
 	# revert change on  --downgrade
-	%{__sed} -i -re 's,^pm command = %{_libexecdir}/pm-command.sh,#&,' /etc/poldek/poldek.conf
+	%{__sed} -i -re 's,^pm command = %{_libexecdir}/pm-command.sh,#&,' %{_sysconfdir}/%{name}/%{name}.conf
 else
 	# setup pm command
-	%{__sed} -i -re 's,#?(pm command =).*,\1 %{_libexecdir}/pm-command.sh,' /etc/poldek/poldek.conf
+	%{__sed} -i -re 's,#?(pm command =).*,\1 %{_libexecdir}/pm-command.sh,' %{_sysconfdir}/%{name}/%{name}.conf
 fi
 
 %files -f %{name}.lang
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/poldek.git/commitdiff/1e921240da284740dd8d658af76fa13d9950b4db



More information about the pld-cvs-commit mailing list