Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 189032 - ocaml-rebuild.sh uses deprecated unmerge argument to emerge
Summary: ocaml-rebuild.sh uses deprecated unmerge argument to emerge
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Gentoo Team for the ML programming language family
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-15 19:56 UTC by Jack Kelly
Modified: 2007-08-23 07:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jack Kelly 2007-08-15 19:56:16 UTC
ocaml-rebuild.sh uses `emerge unmerge' instead of `emerge --unmerge'. The fix is trivial.

Reproducible: Always

Steps to Reproduce:
1. sudo /usr/sbin/ocaml-rebuild.sh -f
2. Note portage's warning that `emerge unmerge' is deprecated.
3. Cry

Actual Results:  
This line turns up in the output:

*** Deprecated use of action 'unmerge', use '--unmerge' instead


Expected Results:  
No deprecation warning.

This patch should fix it:

--- ocaml-rebuild.sh.old        2007-08-15 20:51:24.000000000 +0100
+++ ocaml-rebuild.sh    2007-08-15 20:52:03.000000000 +0100
@@ -54,7 +54,7 @@
        then
                $emerge --pretend $@ $tobuild
        else
-               $emerge unmerge $toclean
+               $emerge --unmerge $toclean
                $emerge $@ $tobuild
        fi
 else
Comment 1 Alexis Ballier gentoo-dev 2007-08-23 07:54:15 UTC
fixed, thanks