summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-06-13 06:01:26 -0700
committerZac Medico <zmedico@gentoo.org>2011-06-13 06:01:26 -0700
commit19c9f21ecddc2ed7092e91a57fe219e3082aa18c (patch)
treec953d74c5f62f4900b29915072c0979af05a6529
parentc754569663408e515fa134c52c7b3b8a1bb15181 (diff)
downloadportage-19c9f21ecddc2ed7092e91a57fe219e3082aa18c.tar.gz
portage-19c9f21ecddc2ed7092e91a57fe219e3082aa18c.tar.bz2
portage-19c9f21ecddc2ed7092e91a57fe219e3082aa18c.zip
Scheduler: make --fetchonly skip pkg_pretend
-rw-r--r--pym/_emerge/Scheduler.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/pym/_emerge/Scheduler.py b/pym/_emerge/Scheduler.py
index c3752c54f..b88e2c29b 100644
--- a/pym/_emerge/Scheduler.py
+++ b/pym/_emerge/Scheduler.py
@@ -1048,9 +1048,10 @@ class Scheduler(PollScheduler):
if rval != os.EX_OK and not keep_going:
return rval
- rval = self._run_pkg_pretend()
- if rval != os.EX_OK:
- return rval
+ if not fetchonly:
+ rval = self._run_pkg_pretend()
+ if rval != os.EX_OK:
+ return rval
while True: