3 from wizard import deploy
5 def parse_install_lines(show, options, yield_errors = False):
6 if not show: show = deploy.applications
8 for line in deploy.getInstallLines(options.versions_path):
11 d = deploy.Deployment.parse(line)
12 name = d.getApplication().name
13 except deploy.NoSuchApplication as e:
18 # we consider this a worse error
19 logging.warning("Error with '%s'" % line.rstrip())
22 if name + "-" + str(d.getVersion()) in show or name in show:
29 class Counter(object):
32 def count(self, value):
33 self.dict.setdefault(value, 0)
35 def __getitem__(self, key):
38 return self.dict.__iter__()