Spostamento codice per calcolo versione.
This commit is contained in:
parent
24de2a2d21
commit
6fe41c6e76
@ -37,6 +37,23 @@ class Build(object):
|
||||
self.url = v.basedirurl
|
||||
self.built = False
|
||||
|
||||
def check(self, storage_path):
|
||||
"""Checking if the requested AppImage has been already built."""
|
||||
self.storage_path = storage_path
|
||||
self.storage_path += ('/daily' if self.query == 'daily' else '')
|
||||
self.storage_path += ('/prerelease' if self.query == 'prerelease' else '')
|
||||
self.storage_path += ('/portable' if self.portable else '')
|
||||
# Incompatibilities - if portable and updatable are asked together,
|
||||
# only portable will be built.
|
||||
if self.portable and self.updatable:
|
||||
print("Upgradable and portable options were required together. Building only portable.")
|
||||
self.updatable = False
|
||||
|
||||
if self.updatable and not self.queried_name:
|
||||
# If the queried version was a numbered version, doesn't make sense
|
||||
# to build an updatable version.
|
||||
self.updatable = False
|
||||
|
||||
# Building expected AppImageName
|
||||
self.languagepart = "."
|
||||
if ',' in self.language:
|
||||
@ -56,24 +73,6 @@ class Build(object):
|
||||
self.appimagefilename[u'x86'] = self.appname + '-' + self.appversion + '-x86.AppImage'
|
||||
self.appimagefilename[u'x86_64'] = self.appname + '-' + self.appversion + '-x86_64.AppImage'
|
||||
|
||||
|
||||
def check(self, storage_path):
|
||||
"""Checking if the requested AppImage has been already built."""
|
||||
self.storage_path = storage_path
|
||||
self.storage_path += ('/daily' if self.query == 'daily' else '')
|
||||
self.storage_path += ('/prerelease' if self.query == 'prerelease' else '')
|
||||
self.storage_path += ('/portable' if self.portable else '')
|
||||
# Incompatibilities - if portable and updatable are asked together,
|
||||
# only portable will be built.
|
||||
if self.portable and self.updatable:
|
||||
print("Upgradable and portable options were required together. Building only portable.")
|
||||
self.updatable = False
|
||||
|
||||
if self.updatable and not self.queried_name:
|
||||
# If the queried version was a numbered version, doesn't make sense
|
||||
# to build an updatable version.
|
||||
self.updatable = False
|
||||
|
||||
for arch in self.arch:
|
||||
# For generalized builds, we need to check if there are .ver file
|
||||
# and it contains the specific version found.
|
||||
|
Reference in New Issue
Block a user