From: Ralf Jung Date: Fri, 27 Jul 2012 13:07:03 +0000 (+0200) Subject: Update example config: Support passing arbitrary module options X-Git-Url: https://git.ralfj.de/mass-build.git/commitdiff_plain/5cdbb55f29cd1dea6c5b7f4d67f70dc3822d4843?ds=sidebyside Update example config: Support passing arbitrary module options --- diff --git a/config.py.sample b/config.py.sample index f5f1bbc..cf1b36e 100644 --- a/config.py.sample +++ b/config.py.sample @@ -8,10 +8,16 @@ installCmdPrefix = [] # helper function for the modules - per default, they assume an SC module defaultGitVersion = 'origin/master' # or 'origin/KDE/4.8' or 'v4.8.4' defaultSvnVersion = 'trunk/KDE' # or 'branches/KDE/4.8' or 'tags/KDE/4.8.4' -def KDEGitModule(name, version=defaultGitVersion): - return {'name':name, 'vcs':'kde+git', 'version':version} -def KDESvnModule(name, svnPath=defaultSvnVersion): - return {'name':name, 'vcs':'kde+svn', 'svn-path':svnPath+'/'+name} +def KDEGitModule(name, version=defaultGitVersion, **module): + module['name'] = name + module['vcs'] = 'kde+git' + module['version'] = version + return module +def KDESvnModule(name, svnPath=defaultSvnVersion, **module): + module['name'] = name + module['vcs'] = 'kde+svn' + module['version'] = svnPath+'/'+name + return module # the modules we are interested in modules = [ # KDE support