diff options
author | Taruntej Kanakamalla <taruntej@asymptotic.io> | 2023-12-28 12:00:09 +0530 |
---|---|---|
committer | Taruntej Kanakamalla <taruntejk@asymptotic> | 2023-12-28 12:10:44 +0530 |
commit | 2fb7626199828c61ae262cbed53acc5548916aa6 (patch) | |
tree | 3e6adf49aeda977f761b1f61bbaceb98fec3123b /recipes | |
parent | 006c6a4ed3d1638767e61391bbbcf0f6acd513bd (diff) |
gst-plugins-rs: Fix file copy failure in post_install
use copy method of shutil instead of the os module for the copying
the .pc and .dll during post install.
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1318>
Diffstat (limited to 'recipes')
-rw-r--r-- | recipes/gst-plugins-rs.recipe | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/recipes/gst-plugins-rs.recipe b/recipes/gst-plugins-rs.recipe index f2ffe497..4bbdd7c4 100644 --- a/recipes/gst-plugins-rs.recipe +++ b/recipes/gst-plugins-rs.recipe @@ -146,7 +146,7 @@ class Recipe(recipe.Recipe): src = os.path.join(self.config.libdir, 'pkgconfig', name) dst = os.path.join(self.config.prefix, f) if os.path.exists(src): - os.copy(src, dst) + shutil.copy(src, dst) # Cargo-C names MinGW DLLs as foo.dll instead of libfoo.dll # https://github.com/lu-zero/cargo-c/issues/280 if not self.using_msvc(): @@ -158,10 +158,10 @@ class Recipe(recipe.Recipe): src = os.path.join(self.config.prefix, d, f'{name[3:]}') dst = os.path.join(self.config.prefix, f) if os.path.exists(src): - os.copy(src, dst) + shutil.copy(src, dst) # if there's a .dll.a it also needs renaming if os.path.exists(src + '.a'): - os.copy(src + '.a', dst + '.a') + shutil.copy(src + '.a', dst + '.a') libraries = [f for f in self.devel_files_list() if f.endswith('.a')] for f in libraries: |