]> git.pld-linux.org Git - packages/seamonkey.git/commitdiff
- update chrome+xpcom-generate run so it is run only once on installs and upgrades
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 25 Mar 2010 12:15:31 +0000 (12:15 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  and avoid executing it if the script does not exist (main package is removed
  in same transaction)

Changed files:
    seamonkey.spec -> 1.100

seamonkey.spec

index 8c65b1324c9c561ef9d8b891c5c002caac013722..6359b2ddd1baeae320f261eaf5caed64d83fb733 100644 (file)
@@ -389,11 +389,13 @@ EOF
 rm -rf $RPM_BUILD_ROOT
 
 %post
-%{_sbindir}/%{name}-chrome+xpcom-generate
+if [ "$1" = 1 ]; then
+       %{_sbindir}/seamonkey-chrome+xpcom-generate
+fi
 %update_browser_plugins
 
 %postun
-%{_sbindir}/%{name}-chrome+xpcom-generate
+[ ! -x %{_sbindir}/seamonkey-chrome+xpcom-generate ] || %{_sbindir}/seamonkey-chrome+xpcom-generate
 if [ "$1" = 0 ]; then
        %update_browser_plugins
 fi
This page took 0.127931 seconds and 4 git commands to generate.