summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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))