Commit c52312c8 authored by Thiago Santos's avatar Thiago Santos
Browse files

packager: osx: bundle: only create main lib if it exists

only try to copy the main framework library if it has already been
created
parent a07ece9a
......@@ -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))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment