Only upload plugin if file exists #4695
Some platforms (e.g. Mac 10.6) don't build the plugin
This commit is contained in:
parent
a900543c1d
commit
8ed3d79cc2
|
@ -1355,9 +1355,10 @@ class InternalCommands:
|
||||||
packageTarget = self.dist_name_rev(type)
|
packageTarget = self.dist_name_rev(type)
|
||||||
ftp.upload(packageSource, packageTarget)
|
ftp.upload(packageSource, packageTarget)
|
||||||
|
|
||||||
if (type != 'src'):
|
if type != 'src':
|
||||||
pluginsDir = binDir + '/plugins'
|
pluginsDir = binDir + '/plugins'
|
||||||
nsPluginSource = self.findLibraryFile(type, pluginsDir, 'ns')
|
nsPluginSource = self.findLibraryFile(type, pluginsDir, 'ns')
|
||||||
|
if nsPluginSource:
|
||||||
nsPluginTarget = self.getLibraryDistFilename(type, pluginsDir, 'ns')
|
nsPluginTarget = self.getLibraryDistFilename(type, pluginsDir, 'ns')
|
||||||
ftp.upload(nsPluginSource, nsPluginTarget, "plugins")
|
ftp.upload(nsPluginSource, nsPluginTarget, "plugins")
|
||||||
|
|
||||||
|
@ -1384,7 +1385,7 @@ class InternalCommands:
|
||||||
if re.search(pattern, filename):
|
if re.search(pattern, filename):
|
||||||
return dir + '/' + filename
|
return dir + '/' + filename
|
||||||
|
|
||||||
raise Exception('Could not find library name with pattern: ' + pattern)
|
return None
|
||||||
|
|
||||||
def getDistributePlatformInfo(self, type):
|
def getDistributePlatformInfo(self, type):
|
||||||
ext = None
|
ext = None
|
||||||
|
|
Loading…
Reference in New Issue