summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2010-08-04 07:04:10 +0000
committerAlexis Ballier <aballier@gentoo.org>2010-08-04 07:04:10 +0000
commitfee9c765298d27a7d7fc960ac399f194e7f3b025 (patch)
treefb630917cf4e7a6975eb85bd5decc4ca2f9223ca /dev-lang/ocaml
parentversion bump (diff)
downloadgentoo-2-fee9c765298d27a7d7fc960ac399f194e7f3b025.tar.gz
gentoo-2-fee9c765298d27a7d7fc960ac399f194e7f3b025.tar.bz2
gentoo-2-fee9c765298d27a7d7fc960ac399f194e7f3b025.zip
exit nicely if no ocaml package is installed in ocaml-rebuild.sh, by Diego E. 'Flameeyes' Pettenò <flameeyes@gentoo.org>, bug #319553
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'dev-lang/ocaml')
-rw-r--r--dev-lang/ocaml/ChangeLog6
-rw-r--r--dev-lang/ocaml/files/ocaml-rebuild.sh5
2 files changed, 10 insertions, 1 deletions
diff --git a/dev-lang/ocaml/ChangeLog b/dev-lang/ocaml/ChangeLog
index 4ea2dd2aba55..4c146789cc9f 100644
--- a/dev-lang/ocaml/ChangeLog
+++ b/dev-lang/ocaml/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-lang/ocaml
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/ocaml/ChangeLog,v 1.180 2010/08/02 15:38:50 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/ocaml/ChangeLog,v 1.181 2010/08/04 07:04:10 aballier Exp $
+
+ 04 Aug 2010; Alexis Ballier <aballier@gentoo.org> files/ocaml-rebuild.sh:
+ exit nicely if no ocaml package is installed in ocaml-rebuild.sh, by Diego
+ E. 'Flameeyes' Pettenò <flameeyes@gentoo.org>, bug #319553
*ocaml-3.12.0 (02 Aug 2010)
diff --git a/dev-lang/ocaml/files/ocaml-rebuild.sh b/dev-lang/ocaml/files/ocaml-rebuild.sh
index 4871989f32c5..7dd14a4eb7d2 100644
--- a/dev-lang/ocaml/files/ocaml-rebuild.sh
+++ b/dev-lang/ocaml/files/ocaml-rebuild.sh
@@ -36,6 +36,11 @@ do
tobuildstr="\">=$category/$pkg:$slot\" $tobuildstr"
done
+if [ "$tobuild" = "" ] ; then
+ echo "Nothing to do!"
+ exit 0
+fi
+
echo Building $tobuildstr
if [ $pretend -eq 1 ]