]> git.pld-linux.org Git - packages/seamonkey-lang-eu.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:34 +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-lang-eu.spec -> 1.9

seamonkey-lang-eu.spec

index 7e1de68b8ada63df6558de5ed347f649354f9831..5c272c55794bebc99119bdfffef4f565f17a6914 100644 (file)
@@ -46,10 +46,12 @@ cp -r bin/defaults $RPM_BUILD_ROOT%{_datadir}/seamonkey
 rm -rf $RPM_BUILD_ROOT
 
 %post
-%{_sbindir}/seamonkey-chrome+xpcom-generate
+if [ "$1" = 1 ]; then
+       %{_sbindir}/seamonkey-chrome+xpcom-generate
+fi
 
 %postun
-%{_sbindir}/seamonkey-chrome+xpcom-generate
+[ ! -x %{_sbindir}/seamonkey-chrome+xpcom-generate ] || %{_sbindir}/seamonkey-chrome+xpcom-generate
 
 %files
 %defattr(644,root,root,755)
This page took 0.06878 seconds and 4 git commands to generate.