summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-07-11 04:54:03 +0000
committerZac Medico <zmedico@gentoo.org>2007-07-11 04:54:03 +0000
commit103998514c912a60739debee514a17c50a5584b3 (patch)
tree2d9665d16cdf952a180f6240654ef30578b2714a
parent1edf173111b5d67fdb850fa390ad0ced123432ff (diff)
downloadportage-103998514c912a60739debee514a17c50a5584b3.tar.gz
portage-103998514c912a60739debee514a17c50a5584b3.tar.bz2
portage-103998514c912a60739debee514a17c50a5584b3.zip
Use set.discard() instead of remove() to avoid a potential KeyError.
svn path=/main/trunk/; revision=7230
-rw-r--r--pym/emerge/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py
index f93e93adc..b5c05c63e 100644
--- a/pym/emerge/__init__.py
+++ b/pym/emerge/__init__.py
@@ -351,9 +351,9 @@ def create_depgraph_params(myopts, myaction):
myparams.add("selective")
if "--emptytree" in myopts:
myparams.add("empty")
- myparams.remove("selective")
+ myparams.discard("selective")
if "--nodeps" in myopts:
- myparams.remove("recurse")
+ myparams.discard("recurse")
if "--deep" in myopts:
myparams.add("deep")
return myparams