import hashlib
import errno
import time
+import itertools
import wizard
from wizard import deploy, util, shell, sset, command
errors = {}
i = 0
# [] needed to workaround subtle behavior of frozenset("")
- for d in deploy.parse_install_lines([app], options.versions_path):
+ deploys = deploy.parse_install_lines([app], options.versions_path)
+ requested_deploys = itertools.islice(deploys, options.limit)
+ for i, d in enumerate(requested_deploys, 1)
# check if we want to punt due to --limit
- i += 1
- if options.limit and i > options.limit:
- break
if d.location in seen:
continue
if is_root and not security_check_homedir(d):