add 'manual' source to specify versions by hand

This commit is contained in:
lilydjwg 2014-09-11 15:21:14 +08:00
parent 819a2c69d3
commit b5ff67fa67
2 changed files with 3 additions and 1 deletions

View File

@ -4,7 +4,7 @@ from importlib import import_module
logger = logging.getLogger(__name__)
handler_precedence = (
'github', 'aur', 'pypi', 'archpkg', 'pacman',
'cmd', 'gcode_hg', 'regex',
'cmd', 'gcode_hg', 'regex', 'manual',
)
def get_version(name, conf, callback):

View File

@ -0,0 +1,2 @@
def get_version(name, conf, callback):
callback(name, conf.get('manual'))