diff options
author | Thiago Santos <thiago.sousa.santos@collabora.com> | 2012-07-12 18:16:53 -0300 |
---|---|---|
committer | Andoni Morales Alastruey <ylatuya@gmail.com> | 2012-07-18 12:09:26 +0200 |
commit | 29031a54d602abeff58e4a10285adfa24089715b (patch) | |
tree | cf26c005a7b5e96bdd030b1f3d73ef79eca5ce05 /recipes/custom.py | |
parent | 0238396857b6a073ad23a901efd8d06cfe90dac9 (diff) |
recipes: custom: avoid using files_list attribute
files_list is already used to get the files list of a recipe, avoid
using that as an attribute on recipe subclasses.
Rename to _files_list to prevent shadowing of the superclass attribute.
Diffstat (limited to 'recipes/custom.py')
-rw-r--r-- | recipes/custom.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/recipes/custom.py b/recipes/custom.py index d1c20820..b02859cb 100644 --- a/recipes/custom.py +++ b/recipes/custom.py @@ -35,14 +35,14 @@ class GStreamerStatic(recipe.Recipe): # Fill the list of files with the static library and the libtool link # library, libgstplugin.a and libgstplugin.la - self.files_list = [] + self._files_list = [] for cat in self.plugins_categories: name = 'files_%s_devel' % cat files =getattr(self, name) f = ['lib/gstreamer-0.10/static/%s.a' % x for x in files] f.extend(['lib/gstreamer-0.10/static/%s.la' % x for x in files]) setattr(self, name, f) - self.files_list.extend(f) + self._files_list.extend(f) for cat in self.platform_plugins_categories: name = 'platform_files_%s_devel' % cat platform_files = getattr(self, name) @@ -50,7 +50,7 @@ class GStreamerStatic(recipe.Recipe): f = ['lib/gstreamer-0.10/static/%s.a' % x for x in files] f.extend(['lib/gstreamer-0.10/static/%s.la' % x for x in files]) platform_files[self.config.platform] = f - self.files_list.extend(f) + self._files_list.extend(f) def configure(self): if not os.path.exists(self.tmp_destdir): @@ -58,17 +58,17 @@ class GStreamerStatic(recipe.Recipe): self.btype.configure(self) def post_install(self): - if not self.files_list: + if not self._files_list: return plugins_dir = os.path.dirname(os.path.join(self.config.prefix, - self.files_list[0])) + self._files_list[0])) if not os.path.exists(plugins_dir): os.makedirs(plugins_dir) # Copy all files installed in the temporary build-static directory # to the prefix. Static plugins will be installed in # lib/gstreamer-0.10/static to avoid conflicts with the libgstplugin.la # generated with the shared build - for f in self.files_list: + for f in self._files_list: f_no_static = f.replace('/static/', '/') shutil.copy(os.path.join(self.tmp_destdir, to_unixpath(self.config.prefix)[1:], f_no_static), |