mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
Merge git://gitorious.org/f-droid/fdroidserver
This commit is contained in:
commit
8f0ef401da
3 changed files with 14 additions and 0 deletions
|
|
@ -41,6 +41,9 @@ keydname = "CN=Birdman, OU=Cell, O=Alcatraz, L=Alcatraz, S=California, C=US"
|
||||||
#for particular applications. Normally, just leave it empty.
|
#for particular applications. Normally, just leave it empty.
|
||||||
keyaliases = {}
|
keyaliases = {}
|
||||||
keyaliases['com.example.app'] = 'example'
|
keyaliases['com.example.app'] = 'example'
|
||||||
|
#You can also force an app to use the same key alias as another one, using
|
||||||
|
#the @ prefix.
|
||||||
|
keyaliases['com.example.another.plugin'] = '@com.example.another'
|
||||||
|
|
||||||
#The ssh path to the server's public web root directory. This is used for
|
#The ssh path to the server's public web root directory. This is used for
|
||||||
#uploading data, etc.
|
#uploading data, etc.
|
||||||
|
|
|
||||||
|
|
@ -1680,6 +1680,13 @@ def getsrclib(spec, extlib_dir, sdk_path, basepath=False):
|
||||||
return sdir
|
return sdir
|
||||||
return libdir
|
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)
|
raise BuildException('Unknown srclib ' + name)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -84,6 +84,10 @@ def main():
|
||||||
if appid in keyaliases:
|
if appid in keyaliases:
|
||||||
# For this particular app, the key alias is overridden...
|
# For this particular app, the key alias is overridden...
|
||||||
keyalias = keyaliases[appid]
|
keyalias = keyaliases[appid]
|
||||||
|
if keyalias.startswith('@'):
|
||||||
|
m = md5.new()
|
||||||
|
m.update(keyalias[1:])
|
||||||
|
keyalias = m.hexdigest()[:8]
|
||||||
else:
|
else:
|
||||||
m = md5.new()
|
m = md5.new()
|
||||||
m.update(appid)
|
m.update(appid)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue