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

Support aliases

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