tags = set(shell.eval("git", "--git-dir=" + application.repository(options.srv_path), "tag").strip().split())
unsupported = set()
for d in deploy.parse_install_lines(appname, options.versions_path):
- version = d.detectVersion()
+ try:
+ version = d.detectVersion()
+ except IOError:
+ continue
if "wordpress-%s" % version not in tags:
- unsupported.add(version)
- for v in unsupported:
+ print version
+ unsupported.add(str(version))
+ print "SUMMARY:"
+ for v in sorted(distutils.version.LooseVersion(x) for x in list(unsupported)):
print v
def parse_args(argv, baton):
options, args = parser.parse_all(argv)
if len(args) > 1:
parser.error("too many arguments")
+ if len(args) < 1:
+ parser.error("must specify application")
return options, args