SPECS: mozilla-firefox-lang-pl.spec - PATCH
Maciej Witaszek
maciek2w at gmail.com
Tue Oct 18 19:36:14 CEST 2005
Jakub Bogusz wrote:
> That's because rpm STILL ignores Requires(postun) :/
This is a weakness of PLD's rpm or rpm in general?
> [[ -f ]] doesn't expand shellglobs, so the condition will never be true
> (unless sb would make file named "*-installed-chrome-txt").
Yes, that's my mistake. This patch is using "find":
=== patch ===
--- mozilla-firefox-lang-pl.spec.orig 2005-10-18 15:28:04.000000000 +0200
+++ mozilla-firefox-lang-pl.spec 2005-10-18 18:48:40.000000000 +0200
@@ -53,7 +53,10 @@
%postun
umask 022
-cat %{_firefoxdir}/chrome/*-installed-chrome.txt >%{_firefoxdir}/chrome/installed-chrome.txt
+if [[ -n `find "%{_firefoxdir}/chrome/" -maxdepth 1 -name "*-installed-chrome.txt"` ]];
+then
+ cat %{_firefoxdir}/chrome/*-installed-chrome.txt >%{_firefoxdir}/chrome/installed-chrome.txt;
+fi
%files
%defattr(644,root,root,755)
=== end patch ===
--
Maciej Witaszek <maciek2w at gmail_nospam.com>
More information about the pld-devel-en
mailing list