Commit 004aaf35 authored by Pietro Albini's avatar Pietro Albini

Fix for 14.04 lts

parent f8b133e5
......@@ -86,6 +86,8 @@ def get(distro, info):
result = {}
for version in versions:
if args.two_lts and distro == 'mythbuntu':
version = "latest"
output = getters[ info['parser'] ]( distro, getattr(args, version), info['releases'], info['archs'] )
if distro == 'ita':
version = 'lts_ita'
......@@ -121,6 +123,7 @@ if __name__ == '__main__':
parser.add_argument("--lts", help="Set which version is the LTS")
parser.add_argument("--ita", help="Set which version is the italian remix")
parser.add_argument("--derivatives", help="Choose if include derivatives", action="store_true")
parser.add_argument("--two-lts", help="If latest is an lts", action="store_true", dest="two_lts")
parser.add_argument("--render-as", help="Set how render the result", default='php', choices=('php', 'moin'))
args = parser.parse_args() # Get arguments
......@@ -144,4 +147,4 @@ if __name__ == '__main__':
if args.render_as == 'php':
render_php(total)
elif args.render_as == 'moin':
render_moin(total)
render_moin(total)
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment