[pypy-svn] r34019 - pypy/dist/pypy/translator/goal
cfbolz at codespeak.net
cfbolz at codespeak.net
Wed Nov 1 14:32:00 CET 2006
Author: cfbolz
Date: Wed Nov 1 14:31:59 2006
New Revision: 34019
Modified:
pypy/dist/pypy/translator/goal/translate.py
Log:
fix logic for disabled goals
Modified: pypy/dist/pypy/translator/goal/translate.py
==============================================================================
--- pypy/dist/pypy/translator/goal/translate.py (original)
+++ pypy/dist/pypy/translator/goal/translate.py Wed Nov 1 14:31:59 2006
@@ -117,12 +117,16 @@
options, args = opt_parser.parse_args()
# set goals and skipped_goals
+ reset = False
for name, _, _, _ in GOALS:
if getattr(translateconfig.goal_options, name):
if name not in translateconfig.goals:
translateconfig.goals.append(name)
if getattr(translateconfig.goal_options, 'no_'+name):
if name not in translateconfig.skipped_goals:
+ if not reset:
+ translateconfig.skipped_goals[:] = []
+ reset = True
translateconfig.skipped_goals.append(name)
if args:
More information about the Pypy-commit
mailing list