Skip to contentSkip to conversation

python-prettytable: fix files permissions

PATCH New Marc Ferland 1 participant 1 message May 1, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python-prettytable: fix files permissions

Got this runtime error:

IOError: [Errno 13] Permission denied: '/usr/lib/python2.7/site-packages/prettytable-0.7.2-py2.7.egg-info/PKG-INFO'

After some investigation, it looks like the pypi package is the culprit as almost all the files in the tar.gz are set to 600 instead of 644.

---
 meta-python/recipes-devtools/python/python-prettytable_0.7.2.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python-prettytable_0.7.2.bb +1 -1
index f63457e..6f4390e 100644
@@ -15,7 +15,7 @@ S = "${WORKDIR}/${SRCNAME}-${PV}"
 inherit setuptools
 
 do_install_append() {
-    perm_files=`find "${D}${PYTHON_SITEPACKAGES_DIR}/" -name "top_level.txt"`
+    perm_files=`find "${D}${PYTHON_SITEPACKAGES_DIR}/" -name "*.txt" -o -name "PKG-INFO"`
     for f in $perm_files; do
         chmod 644 "${f}"
     done
Signature · 1 line
2.7.4