diff options
author | Alexis Ballier <aballier@gentoo.org> | 2008-12-11 08:24:39 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2008-12-11 08:24:39 +0000 |
commit | 5ff4ab5b3ceed7157244cb3ceb0b72a1ad79770f (patch) | |
tree | 1db3f08c543ab97f98661e47caf57c98ba8cdb75 /dev-lang/ocaml | |
parent | remove old (diff) | |
download | gentoo-2-5ff4ab5b3ceed7157244cb3ceb0b72a1ad79770f.tar.gz gentoo-2-5ff4ab5b3ceed7157244cb3ceb0b72a1ad79770f.tar.bz2 gentoo-2-5ff4ab5b3ceed7157244cb3ceb0b72a1ad79770f.zip |
Simplify ocaml-rebuild.sh: dont clean first and let portage handle the deps, use --oneshot to not pollute world file, bug #250192
(Portage version: 2.2_rc17/cvs/Linux 2.6.27.8 x86_64)
Diffstat (limited to 'dev-lang/ocaml')
-rw-r--r-- | dev-lang/ocaml/ChangeLog | 6 | ||||
-rw-r--r-- | dev-lang/ocaml/files/ocaml-rebuild.sh | 16 |
2 files changed, 8 insertions, 14 deletions
diff --git a/dev-lang/ocaml/ChangeLog b/dev-lang/ocaml/ChangeLog index 6228ead3609b..6b6607022214 100644 --- a/dev-lang/ocaml/ChangeLog +++ b/dev-lang/ocaml/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-lang/ocaml # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/ocaml/ChangeLog,v 1.156 2008/12/08 08:46:03 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/ocaml/ChangeLog,v 1.157 2008/12/11 08:24:39 aballier Exp $ + + 11 Dec 2008; Alexis Ballier <aballier@gentoo.org> files/ocaml-rebuild.sh: + Simplify ocaml-rebuild.sh: dont clean first and let portage handle the + deps, use --oneshot to not pollute world file, bug #250192 *ocaml-3.11.0 (08 Dec 2008) diff --git a/dev-lang/ocaml/files/ocaml-rebuild.sh b/dev-lang/ocaml/files/ocaml-rebuild.sh index d0fc233c046e..4871989f32c5 100644 --- a/dev-lang/ocaml/files/ocaml-rebuild.sh +++ b/dev-lang/ocaml/files/ocaml-rebuild.sh @@ -32,25 +32,15 @@ do category=`cat $dir/CATEGORY` slot=`cat $dir/SLOT` - toclean="=$category/$pkg $toclean" - tocleanstr="\"$category/$pkg\" $tocleanstr" - tobuild=">=$category/$pkg:$slot $tobuild" tobuildstr="\">=$category/$pkg:$slot\" $tobuildstr" done -echo Cleaning $tocleanstr echo Building $tobuildstr -if [ "$toclean" != "" ] +if [ $pretend -eq 1 ] then - if [ $pretend -eq 1 ] - then - $emerge --pretend $@ $tobuild - else - $emerge --unmerge $toclean - $emerge $@ $tobuild - fi + $emerge --pretend $@ $tobuild else - echo "Nothing to update" + $emerge --oneshot $@ $tobuild fi |