Fixed messed up indentation in commands1.py #4695
This commit is contained in:
parent
74dda188dc
commit
16d9bd8f0d
|
@ -319,7 +319,6 @@ class InternalCommands:
|
||||||
self.configure(target)
|
self.configure(target)
|
||||||
|
|
||||||
def checkGTest(self):
|
def checkGTest(self):
|
||||||
|
|
||||||
dir = self.extDir + '/' + self.gtestDir
|
dir = self.extDir + '/' + self.gtestDir
|
||||||
if (os.path.isdir(dir)):
|
if (os.path.isdir(dir)):
|
||||||
return
|
return
|
||||||
|
@ -335,7 +334,6 @@ class InternalCommands:
|
||||||
self.zipExtractAll(zip, dir)
|
self.zipExtractAll(zip, dir)
|
||||||
|
|
||||||
def checkGMock(self):
|
def checkGMock(self):
|
||||||
|
|
||||||
dir = self.extDir + '/' + self.gmockDir
|
dir = self.extDir + '/' + self.gmockDir
|
||||||
if (os.path.isdir(dir)):
|
if (os.path.isdir(dir)):
|
||||||
return
|
return
|
||||||
|
@ -1100,6 +1098,7 @@ class InternalCommands:
|
||||||
err = os.system(cmd)
|
err = os.system(cmd)
|
||||||
if err != 0:
|
if err != 0:
|
||||||
raise Exception('rpmlint failed: ' + str(err))
|
raise Exception('rpmlint failed: ' + str(err))
|
||||||
|
|
||||||
finally:
|
finally:
|
||||||
self.restore_chdir()
|
self.restore_chdir()
|
||||||
|
|
||||||
|
@ -1368,9 +1367,19 @@ class InternalCommands:
|
||||||
nsPluginTarget = self.getLibraryDistFilename(type, pluginsDir, 'ns')
|
nsPluginTarget = self.getLibraryDistFilename(type, pluginsDir, 'ns')
|
||||||
self.ftpUpload(ftp, nsPluginSource, nsPluginTarget)
|
self.ftpUpload(ftp, nsPluginSource, nsPluginTarget)
|
||||||
|
|
||||||
# os_bits should be loaded with '32bit' or '64bit'
|
def getLibraryDistFilename(self, type, dir, name):
|
||||||
import platform
|
(platform, packageExt, libraryExt) = self.getDistributePlatformInfo(type)
|
||||||
(os_bits, other) = platform.architecture()
|
branch = self.getGitBranchName()
|
||||||
|
revision = self.getGitRevision()
|
||||||
|
firstPart = '%s-%s-%s-%s' % (name, branch, revision, platform)
|
||||||
|
|
||||||
|
filename = '%s.%s' % (firstPart, libraryExt)
|
||||||
|
if type == 'rpm' or type == 'deb':
|
||||||
|
# linux is a bit special, include dist type (deb/rpm in filename)
|
||||||
|
filename = '%s-%s.%s' % (firstPart, packageExt, libraryExt)
|
||||||
|
|
||||||
|
return filename
|
||||||
|
|
||||||
def findLibraryFile(self, type, dir, name):
|
def findLibraryFile(self, type, dir, name):
|
||||||
(platform, packageExt, libraryExt) = self.getDistributePlatformInfo(type)
|
(platform, packageExt, libraryExt) = self.getDistributePlatformInfo(type)
|
||||||
ext = libraryExt
|
ext = libraryExt
|
||||||
|
|
Loading…
Reference in New Issue