mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-12 18:20:29 +03:00
pylint: Reenable E1101 no-member
This commit is contained in:
parent
1dcb863f55
commit
abc752314b
7 changed files with 11 additions and 3 deletions
|
|
@ -1007,6 +1007,9 @@ class vcs:
|
|||
self.refreshed = False
|
||||
self.srclib = None
|
||||
|
||||
def _gettags(self):
|
||||
raise NotImplementedError
|
||||
|
||||
def repotype(self):
|
||||
return None
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,6 @@ import shutil
|
|||
from . import _
|
||||
from . import common
|
||||
from . import index
|
||||
from . import update
|
||||
from .exception import FDroidException
|
||||
|
||||
config = None
|
||||
|
|
@ -524,7 +523,7 @@ def upload_apk_to_android_observatory(path):
|
|||
|
||||
apkfilename = os.path.basename(path)
|
||||
r = requests.post('https://androidobservatory.org/',
|
||||
data={'q': update.sha256sum(path), 'searchby': 'hash'},
|
||||
data={'q': common.sha256sum(path), 'searchby': 'hash'},
|
||||
headers=net.HEADERS, timeout=300)
|
||||
if r.status_code == 200:
|
||||
# from now on XPath will be used to retrieve the message in the HTML
|
||||
|
|
|
|||
|
|
@ -764,6 +764,8 @@ def parse_metadata(metadatapath):
|
|||
try:
|
||||
commit_id = common.get_head_commit_id(git.Repo(build_dir))
|
||||
logging.debug(_('Including metadata from %s@%s') % (metadata_in_repo, commit_id))
|
||||
# See https://github.com/PyCQA/pylint/issues/2856 .
|
||||
# pylint: disable-next=no-member
|
||||
except git.exc.InvalidGitRepositoryError:
|
||||
logging.debug(_('Including metadata from {path}').format(metadata_in_repo))
|
||||
app_in_repo = parse_metadata(metadata_in_repo)
|
||||
|
|
|
|||
|
|
@ -199,6 +199,7 @@ class FDroidBuildVm:
|
|||
|
||||
def __init__(self, srvdir):
|
||||
"""Create new server class."""
|
||||
self.provider = None
|
||||
self.srvdir = srvdir
|
||||
self.srvname = basename(srvdir) + '_default'
|
||||
self.vgrntfile = os.path.join(srvdir, 'Vagrantfile')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue