]> git.pld-linux.org Git - packages/R.git/commitdiff
- don't call postun scripts if R is removed together with a package:
authorankry <ankry@pld-linux.org>
Fri, 4 Apr 2003 17:45:23 +0000 (17:45 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  they'll fail and are not necessary then
- rel. 2

Changed files:
    R.spec -> 1.40

R.spec

diff --git a/R.spec b/R.spec
index 99aecc97cde2d5442531c0caa5b4447bab21edad..a445ea60b010f5a0649769ab706017ffd8590149 100644 (file)
--- a/R.spec
+++ b/R.spec
@@ -6,7 +6,7 @@ Summary:        A language for data analysis and graphics
 Summary(pl):   Jêzyk do analizy danych oraz grafiki
 Name:          R
 Version:       1.6.1
-Release:       1
+Release:       2
 License:       Mixed (distributable), mostly GPL
 Group:         Development/Languages
 Source0:       ftp://stat.ethz.ch/R-CRAN/src/base/%{name}-%{version}.tgz
@@ -305,24 +305,30 @@ rm -rf $RPM_BUILD_ROOT
  R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
 
 %postun contrib
+if [ -f ../bin/Rcmd ];then
 (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
  R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
+fi
 
 %post recommended
 (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
  R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
 
 %postun recommended
+if [ -f ../bin/Rcmd ];then
 (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
  R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
+fi
 
 %post mlbench
 (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
  R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
 
 %postun mlbench
+if [ -f ../bin/Rcmd ];then
 (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
  R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist)
+fi
 
 %files base
 %defattr(644,root,root,755)
This page took 0.069403 seconds and 4 git commands to generate.