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): ...@@ -86,6 +86,8 @@ def get(distro, info):
result = {} result = {}
for version in versions: 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'] ) output = getters[ info['parser'] ]( distro, getattr(args, version), info['releases'], info['archs'] )
if distro == 'ita': if distro == 'ita':
version = 'lts_ita' version = 'lts_ita'
...@@ -121,6 +123,7 @@ if __name__ == '__main__': ...@@ -121,6 +123,7 @@ if __name__ == '__main__':
parser.add_argument("--lts", help="Set which version is the LTS") 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("--ita", help="Set which version is the italian remix")
parser.add_argument("--derivatives", help="Choose if include derivatives", action="store_true") 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')) parser.add_argument("--render-as", help="Set how render the result", default='php', choices=('php', 'moin'))
args = parser.parse_args() # Get arguments args = parser.parse_args() # Get arguments
......
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