From dad1e45ff9829f3d359ccba4edfcd9678b53451a Mon Sep 17 00:00:00 2001 From: Marius Mauch Date: Sun, 19 Feb 2006 04:43:03 +0000 Subject: finally remove --upgradeonly svn path=/main/trunk/; revision=2739 --- bin/emerge | 35 ++--------------------------------- 1 file changed, 2 insertions(+), 33 deletions(-) (limited to 'bin') diff --git a/bin/emerge b/bin/emerge index c423aede3..09a1dfd7a 100755 --- a/bin/emerge +++ b/bin/emerge @@ -192,7 +192,7 @@ options=[ "--searchdesc", "--selective", "--skipfirst", "--skip-first", "--tree", -"--update", "--upgradeonly", +"--update", "--usepkg", "--usepkgonly", "--verbose", "--version" ] @@ -216,7 +216,7 @@ shortmapping={ "q":"--quiet", "s":"--search", "S":"--searchdesc", 't':"--tree", -"u":"--update", "U":"--upgradeonly", +"u":"--update", "v":"--verbose", "V":"--version" } @@ -383,17 +383,6 @@ if ("--newuse" in myopts) and not ("--update" in myopts): print ">>> --newuse implies --update... adding --update to options." myopts.append("--update") -# Print deprecation warning for -U -if ("--upgradeonly" in myopts): - print - print red("*** Warning: --upgradeonly is a deprecated option in portage-"+portage.VERSION) - print red("*** and will likely be removed in a future version.") - print - # Also allow -U to apply --update/-u - if not ("--update" in myopts): - print ">>> --upgradeonly implies --update... adding --update to options." - myopts.append("--update") - # Also allow -l to apply --pretend/-p, but if already in --ask mode if ("--changelog" in myopts) and not (("--pretend" in myopts) or ("--ask" in myopts)): print ">>> --changelog implies --pretend... adding --pretend to options." @@ -1329,26 +1318,6 @@ class depgraph: else: myeb_pkg = None - if "--upgradeonly" in myopts: - # Check that there isn't a newer version of this package already installed - cand = None - try: - # XXX: This can throw an exception if the ebuild doesn't exist - if myeb: - cand=self.is_newer_ver_installed(myroot,x,myeb) - elif myeb_pkg: - cand=self.is_newer_ver_installed(myroot,x,myeb_pkg) - except SystemExit, e: - raise # Needed else can't exit - except Exception, e: - print "Warning: "+str(e) - if cand: - # --newuse can't work because the installed version isn't available - # just pretend like the package doesn't matter - # XXX: hidden assumption here that the higher versioned package - # satisfies the atom that was given - continue - if myeb: myk=["ebuild",myroot,myeb] elif myeb_pkg: -- cgit v1.2.3-1-g7c22