summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Santos <thiago.sousa.santos@collabora.com>2013-03-04 09:23:02 -0300
committerThiago Santos <thiago.sousa.santos@collabora.com>2013-03-07 16:02:43 -0300
commitc52312c886f089f6d4c24b95decc064d21034363 (patch)
treed0026fdddcfcd37cde9df4e995de86b44015f29c
parenta07ece9aa8917e26d8252487dda46ceba701e00a (diff)
packager: osx: bundle: only create main lib if it exists
only try to copy the main framework library if it has already been created
-rw-r--r--cerbero/packages/osx/bundles.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cerbero/packages/osx/bundles.py b/cerbero/packages/osx/bundles.py
index 606501c..bed7ec6 100644
--- a/cerbero/packages/osx/bundles.py
+++ b/cerbero/packages/osx/bundles.py
@@ -141,7 +141,8 @@ class FrameworkBundlePackager(BundlePackagerBase):
shell.call ('ln -s %s %s' % (src, dest), inner_tmp)
# Copy the framework library to Versions/$VERSION/$ARCH/Framework
- if self.package.osx_framework_library is not None:
+ if self.package.osx_framework_library is not None \
+ and os.path.exists(os.path.join(self.config.prefix, link)):
shell.call ('mkdir -p %s' % vdir, tmp)
shutil.copy(os.path.join(self.config.prefix, link),
os.path.join(tmp, vdir, name))