Make --update imply --oneshot since people often us it to update things when they...
authorZac Medico <zmedico@gentoo.org>
Sun, 22 Jul 2007 06:48:00 +0000 (06:48 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 22 Jul 2007 06:48:00 +0000 (06:48 -0000)
svn path=/main/trunk/; revision=7349

pym/emerge/__init__.py

index 40c9151f629fc4c1c2218f4138b8be473961ecfe..d40957f9c88ff38a4101f1c31b44f896bd7b80cd 100644 (file)
@@ -1568,7 +1568,9 @@ class depgraph(object):
                                                        greedy_atoms.append((myarg, myslot_atom))
                        arg_atoms = greedy_atoms
 
-               oneshot = "--oneshot" in self.myopts or "--onlydeps" in self.myopts
+               oneshot = "--oneshot" in self.myopts or \
+                       "--onlydeps" in self.myopts or \
+                       "--update" in self.myopts
                """ These are used inside self.create() in order to ensure packages
                that happen to match arguments are not incorrectly marked as nomerge."""
                args_set = self._sets["args"]