mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
fix pylint Unused argument
This commit is contained in:
parent
6db9ba8334
commit
43c61aecee
5 changed files with 6 additions and 6 deletions
|
|
@ -163,7 +163,7 @@ def make_v1(apps, packages, repodir, repodict, requestsdict, fdroid_signing_key_
|
||||||
output['requests'] = requestsdict
|
output['requests'] = requestsdict
|
||||||
|
|
||||||
# establish sort order of the index
|
# establish sort order of the index
|
||||||
v1_sort_packages(packages, repodir, fdroid_signing_key_fingerprints)
|
v1_sort_packages(packages, fdroid_signing_key_fingerprints)
|
||||||
|
|
||||||
appslist = []
|
appslist = []
|
||||||
output['apps'] = appslist
|
output['apps'] = appslist
|
||||||
|
|
@ -252,7 +252,7 @@ def make_v1(apps, packages, repodir, repodict, requestsdict, fdroid_signing_key_
|
||||||
signindex.sign_index_v1(repodir, json_name)
|
signindex.sign_index_v1(repodir, json_name)
|
||||||
|
|
||||||
|
|
||||||
def v1_sort_packages(packages, repodir, fdroid_signing_key_fingerprints):
|
def v1_sort_packages(packages, fdroid_signing_key_fingerprints):
|
||||||
"""Sorts the supplied list to ensure a deterministic sort order for
|
"""Sorts the supplied list to ensure a deterministic sort order for
|
||||||
package entries in the index file. This sort-order also expresses
|
package entries in the index file. This sort-order also expresses
|
||||||
installation preference to the clients.
|
installation preference to the clients.
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ def publish_source_tarball(apkfilename, unsigned_dir, output_dir):
|
||||||
logging.debug('...no source tarball for %s', apkfilename)
|
logging.debug('...no source tarball for %s', apkfilename)
|
||||||
|
|
||||||
|
|
||||||
def key_alias(appid, resolve=False):
|
def key_alias(appid):
|
||||||
"""Get the alias which F-Droid uses to indentify the singing key
|
"""Get the alias which F-Droid uses to indentify the singing key
|
||||||
for this App in F-Droids keystore.
|
for this App in F-Droids keystore.
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ def extract_signature(apkpath):
|
||||||
return sigdir
|
return sigdir
|
||||||
|
|
||||||
|
|
||||||
def extract(config, options):
|
def extract(options):
|
||||||
|
|
||||||
# Create tmp dir if missing…
|
# Create tmp dir if missing…
|
||||||
tmp_dir = 'tmp'
|
tmp_dir = 'tmp'
|
||||||
|
|
|
||||||
|
|
@ -211,7 +211,7 @@ class IndexTest(unittest.TestCase):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
fdroidserver.index.v1_sort_packages(
|
fdroidserver.index.v1_sort_packages(
|
||||||
i, 'repo', fdroidserver.common.load_stats_fdroid_signing_key_fingerprints())
|
i, fdroidserver.common.load_stats_fdroid_signing_key_fingerprints())
|
||||||
self.maxDiff = None
|
self.maxDiff = None
|
||||||
self.assertEqual(json.dumps(i, indent=2), json.dumps(o, indent=2))
|
self.assertEqual(json.dumps(i, indent=2), json.dumps(o, indent=2))
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ class SignaturesTest(unittest.TestCase):
|
||||||
APK = [os.path.abspath(os.path.join('repo', 'com.politedroid_3.apk'))]
|
APK = [os.path.abspath(os.path.join('repo', 'com.politedroid_3.apk'))]
|
||||||
|
|
||||||
with TemporaryDirectory() as tmpdir, TmpCwd(tmpdir):
|
with TemporaryDirectory() as tmpdir, TmpCwd(tmpdir):
|
||||||
signatures.extract(common.config, OptionsFixture())
|
signatures.extract(OptionsFixture())
|
||||||
|
|
||||||
# check if extracted signatures are where they are supposed to be
|
# check if extracted signatures are where they are supposed to be
|
||||||
# also verify weather if extracted file contian what they should
|
# also verify weather if extracted file contian what they should
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue