On Tue, Oct 18, 2005 at 03:58:54PM +0200, Maciej Witaszek wrote:
> Hi,
> 
> I try to remove a mozilla-firefox and mozilla-firefox-lang-pl package, 
> but I get an error.
> The mozilla-firefox-lang-pl was build from SPEC - revision 1.20.
> 
> === error log ===
> [EMAIL PROTECTED] SPECS]$ sudo rpm -e mozilla-firefox-lang-pl 
> mozilla-firefox-1.0.7
> cat: /usr/lib/mozilla-firefox/chrome/*-installed-chrome.txt: No such file or 
> directory
> error: %postun(mozilla-firefox-lang-pl-1.0.7-1.i686) scriptlet failed, exit 
> status 1
> === end error log ===

That's because rpm STILL ignores Requires(postun) :/

> === patch ===
> --- mozilla-firefox-lang-pl.spec.orig   2005-10-18 15:28:04.000000000 +0200
> +++ mozilla-firefox-lang-pl.spec        2005-10-18 15:29:29.000000000 +0200
> @@ -53,7 +53,10 @@
> 
>  %postun
>  umask 022
> -cat %{_firefoxdir}/chrome/*-installed-chrome.txt 
> >%{_firefoxdir}/chrome/installed-chrome.txt
> +if [[ -f %{_firefoxdir}/chrome/*-installed-chrome.txt ]];
      ^^                          ^                      ^^

[[ -f ]] doesn't expand shellglobs, so the condition will never be true
(unless sb would make file named "*-installed-chrome-txt").


-- 
Jakub Bogusz    http://qboosh.cs.net.pl/
_______________________________________________
pld-devel-en mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en

Reply via email to