1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-07-02 07:20:37 +02:00

remove redundant imports and pointless code

This commit is contained in:
Hans-Christoph Steiner 2021-05-11 20:25:51 +02:00
parent 95af082082
commit 0fbd04f1c2
No known key found for this signature in database
GPG Key ID: 3E177817BA1B9BFA
5 changed files with 0 additions and 10 deletions

View File

@ -957,7 +957,6 @@ def make_v0(apps, apks, repodir, repodict, requestsdict, fdroid_signing_key_fing
% repo_icon)
os.makedirs(os.path.dirname(iconfilename), exist_ok=True)
try:
import qrcode
qrcode.make(common.config['repo_url']).save(iconfilename)
except Exception:
exampleicon = os.path.join(common.get_examples_dir(),

View File

@ -66,7 +66,6 @@ def main():
help=_("Do not prompt for Android SDK path, just fail"))
options = parser.parse_args()
aapt = None
fdroiddir = os.getcwd()
test_config = dict()
examplesdir = common.get_examples_dir()
@ -227,8 +226,6 @@ def main():
msg = '\n'
msg += _('Built repo based in "%s" with this config:') % fdroiddir
msg += '\n\n Android SDK:\t\t\t' + config['sdk_path']
if aapt:
msg += '\n Android SDK Build Tools:\t' + os.path.dirname(aapt)
msg += '\n Android NDK r12b (optional):\t$ANDROID_NDK'
msg += '\n ' + _('Keystore for signing key:\t') + keystore
if repo_keyalias is not None:

View File

@ -890,10 +890,6 @@ def write_yaml(mf, app):
_yaml_bools_plus_lists.extend(_yaml_bools_false)
_yaml_bools_plus_lists.extend([[x] for x in _yaml_bools_false])
def _class_as_dict_representer(dumper, data):
'''Creates a YAML representation of a App/Build instance'''
return dumper.represent_dict(data)
def _field_to_yaml(typ, value):
if typ is TYPE_STRING:
if value in _yaml_bools_plus_lists:

View File

@ -2067,7 +2067,6 @@ def create_metadata_from_template(apk):
template: field sort order, empty field value, formatting, etc.
'''
import yaml
if os.path.exists('template.yml'):
with open('template.yml') as f:
metatxt = f.read()

View File

@ -7,7 +7,6 @@ import os
import re
import requests
import subprocess
import sys
projectbasedir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))