Merge git://gitorious.org/f-droid/fdroidserver

This commit is contained in:
Daniel Martí 2013-04-08 12:10:17 +02:00
commit 8f0ef401da
3 changed files with 14 additions and 0 deletions

View file

@ -1680,6 +1680,13 @@ def getsrclib(spec, extlib_dir, sdk_path, basepath=False):
return sdir
return libdir
elif name == 'XChange':
sdir = os.path.join(extlib_dir, 'XChange')
vcs = getvcs('git',
'https://github.com/timmolter/XChange', sdir, sdk_path)
vcs.gotorevision(ref)
return sdir
raise BuildException('Unknown srclib ' + name)

View file

@ -84,6 +84,10 @@ def main():
if appid in keyaliases:
# For this particular app, the key alias is overridden...
keyalias = keyaliases[appid]
if keyalias.startswith('@'):
m = md5.new()
m.update(keyalias[1:])
keyalias = m.hexdigest()[:8]
else:
m = md5.new()
m.update(appid)