Remove the --avoid-update option and make it the default behavior when
authorZac Medico <zmedico@gentoo.org>
Sat, 4 Jul 2009 06:13:04 +0000 (06:13 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 4 Jul 2009 06:13:04 +0000 (06:13 -0000)
--update is not specified, as suggested by Allen Brooker (AllenJB)
<gentoo-bugs@allenjb.me.uk> in bug #275945, comment #2.

svn path=/main/trunk/; revision=13772

man/emerge.1
pym/_emerge/depgraph.py
pym/_emerge/help.py
pym/_emerge/main.py

index a1dbcde731eb70bc299374a9cb697d51b34390d2..df054c9e979717e0fe78303be0e997813ec1346d 100644 (file)
@@ -90,15 +90,6 @@ option if you want to install a tbz2\fR.  The packages are added
 to the \fBworld\fR file at the end, so that they are considered for
 later updating.
 .TP
 to the \fBworld\fR file at the end, so that they are considered for
 later updating.
 .TP
-.BR "\-\-avoid\-update "
-Tries to prevent package updates. This may not always be
-possible since new packages or new dependencies due to USE
-flag changes may require a newer version of an installed
-package. Furthermore, this option may lead to slot conflicts
-(Multiple package instances within a single package slot
-have been pulled into the dependency graph). It is not
-possible to use this option in such a case.
-.TP
 .BR "\-\-clean " (\fB\-c\fR)
 Cleans up the system by examining the installed packages and removing older
 packages.  This is accomplished by looking at each installed package and separating
 .BR "\-\-clean " (\fB\-c\fR)
 Cleans up the system by examining the installed packages and removing older
 packages.  This is accomplished by looking at each installed package and separating
@@ -373,9 +364,6 @@ A USE flag was turned off for a package.
 
 USE flags may be toggled by your profile as well as your USE and package.use
 settings.
 
 USE flags may be toggled by your profile as well as your USE and package.use
 settings.
-
-\fB\-\-avoid\-update\fR may prevent updates of installed packages without 
-use flag changes. Note that \fB\-\-avoid-\update\fR may lead to slot conflicts.
 .TP
 .BR "\-\-noconfmem"
 Causes portage to disregard merge records indicating that a config file
 .TP
 .BR "\-\-noconfmem"
 Causes portage to disregard merge records indicating that a config file
index 17e9c5f8de431ac1854d62cf242d98ee47f8149e..9d415c7e1930c06cefefacb932a5ecf8d1881216 100644 (file)
@@ -2007,7 +2007,7 @@ class depgraph(object):
                selective = "selective" in self._dynamic_config.myparams
                reinstall = False
                noreplace = "--noreplace" in self._frozen_config.myopts
                selective = "selective" in self._dynamic_config.myparams
                reinstall = False
                noreplace = "--noreplace" in self._frozen_config.myopts
-               avoid_update = "--avoid-update" in self._frozen_config.myopts
+               avoid_update = "--update" not in self._frozen_config.myopts
                # Behavior of the "selective" parameter depends on
                # whether or not a package matches an argument atom.
                # If an installed package provides an old-style
                # Behavior of the "selective" parameter depends on
                # whether or not a package matches an argument atom.
                # If an installed package provides an old-style
index 291dd26f28a830c9bb5faa0c33295a1c42968a62..b39bf48bf07dff05d05428b693d15312c314adda 100644 (file)
@@ -249,17 +249,6 @@ def help(myopts, havecolor=1):
                print "              to the prompt, so an accidental press of the \"Enter\" key at any"
                print "              time prior to the prompt will be interpreted as a choice!"
                print
                print "              to the prompt, so an accidental press of the \"Enter\" key at any"
                print "              time prior to the prompt will be interpreted as a choice!"
                print
-               print "       "+green("--avoid-update")
-               desc = "Tries to prevent package updates. This may not always be" + \
-                       " possible since new packages or new dependencies due to USE" + \
-                       " flag changes may require a newer version of an installed" + \
-                       " package. Furthermore, this option may lead to slot conflicts" + \
-                       " (Multiple package instances within a single package slot" + \
-                       " have been pulled into the dependency graph). It is not" + \
-                       " possible to use this option in such a case."
-               for line in wrap(desc, desc_width):
-                       print desc_indent + line
-               print
                print "       "+green("--buildpkg")+" ("+green("-b")+" short option)"
                desc = "Tells emerge to build binary packages for all ebuilds processed in" + \
                        " addition to actually merging the packages. Useful for maintainers" + \
                print "       "+green("--buildpkg")+" ("+green("-b")+" short option)"
                desc = "Tells emerge to build binary packages for all ebuilds processed in" + \
                        " addition to actually merging the packages. Useful for maintainers" + \
index 697647fddb56a9876a804b7ff681eda597e84ab5..51357bde2105c686dc658bd13292364ee9e59ef9 100644 (file)
@@ -65,7 +65,6 @@ options=[
 "--searchdesc",   "--selective",
 "--skipfirst",
 "--tree",
 "--searchdesc",   "--selective",
 "--skipfirst",
 "--tree",
-"--avoid-update",
 "--update",
 "--usepkg",       "--usepkgonly",
 "--verbose",
 "--update",
 "--usepkg",       "--usepkgonly",
 "--verbose",
@@ -1058,11 +1057,6 @@ def emerge_main():
                        noiselevel=-1)
                return 1
 
                        noiselevel=-1)
                return 1
 
-       if "--avoid-update" in myopts and "--update" in myopts:
-               writemsg("!!! conflicting options given: " + \
-                       "--update and --avoid-update\n", noiselevel=-1)
-               return 1
-
        if settings.get("PORTAGE_DEBUG", "") == "1":
                spinner.update = spinner.update_quiet
                portage.debug=1
        if settings.get("PORTAGE_DEBUG", "") == "1":
                spinner.update = spinner.update_quiet
                portage.debug=1