Commit 18ff0a27 authored by Seblu's avatar Seblu
Browse files

Support aliases

parent c071921e
......@@ -21,6 +21,10 @@ url =
# Url request timeout in seconds
#timeout =
# Alternative package name. Space separated list
# Useful with split packages
#alias =
# Url retry count (default: 0)
#retry =
......
......@@ -288,6 +288,7 @@ regex_name = docutils
[virtualbox]
url = http://download.virtualbox.org/virtualbox/
regex = (\d+\.\d+\.\d+)/
alias = virtualbox-modules virtualbox-modules-lts virtualbox-ext-oracle virtualbox-guest-iso
[scsiadd]
url = http://llg.cubic.org/tools/
......
......@@ -310,7 +310,12 @@ class VersionController(object):
continue
# save our compare in cache
self.cache["compare"][name] = int(time())
# gen main pacakge
yield (name, v_upstream, v_downstream)
# gen aliases package
for alias in value.get("alias", "").split(" "):
if alias != "":
yield (alias, v_upstream, v_downstream)
def print_names(self):
'''Print packages name'''
......
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