Skip to contentSkip to conversation

python-horizon: cleanup QA warnings

PATCH In review Mark Asselstine 2 participants 2 messages Jan 9, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python-horizon: cleanup QA warnings

Currently we are seeing warnings like:

.../horizon.scss is owned by gid 1001, which is the same as the user running bitbake.

These are caused by using 'cp -a' in this case, by excluding the 'ownership' part of -a we can avoid these QA issues.

---
 meta-openstack/recipes-devtools/python/python-horizon_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-openstack/recipes-devtools/python/python-horizon_git.bb +1 -1
index 5a23930..d2cb345 100644
@@ -124,7 +124,7 @@ do_install_append() {
 
     # the following are setup required for horizon-apache
     install -d ${DASHBOARD_SHARE_DIR}
-    cp -a ${S}/openstack_dashboard  ${DASHBOARD_SHARE_DIR}
+    cp -a --no-preserve=ownership ${S}/openstack_dashboard  ${DASHBOARD_SHARE_DIR}
     cp ${S}/manage.py  ${DASHBOARD_SHARE_DIR}
 
     install -D -m 644 ${WORKDIR}/local_settings.py \
Signature · 1 line
2.7.4
#1 lore raw
Quoted 8 lines · Mark Asselstine

Currently we are seeing warnings like:

.../horizon.scss is owned by gid 1001, which is the same as the user running bitbake.

These are caused by using 'cp -a' in this case, by excluding the 'ownership' part of -a we can avoid these QA issues.

merged.

Bruce

Quoted 19 lines
---
 meta-openstack/recipes-devtools/python/python-horizon_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-openstack/recipes-devtools/python/python-horizon_git.bb +1 -1
index 5a23930..d2cb345 100644
@@ -124,7 +124,7 @@ do_install_append() {
 
     # the following are setup required for horizon-apache
     install -d ${DASHBOARD_SHARE_DIR}
-    cp -a ${S}/openstack_dashboard  ${DASHBOARD_SHARE_DIR}
+    cp -a --no-preserve=ownership ${S}/openstack_dashboard  ${DASHBOARD_SHARE_DIR}
     cp ${S}/manage.py  ${DASHBOARD_SHARE_DIR}
 
     install -D -m 644 ${WORKDIR}/local_settings.py \