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 <[EMAIL PROTECTED]>

_______________________________________________
pld-devel-en mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en

Reply via email to