Skip to contentSkip to conversation

package_manager: use normalized path when doing the filtered copy

PATCH New Max Krummenacher 1 participant 1 message Sep 15, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package_manager: use normalized path when doing the filtered copy

The linking/copying of the package files failes if the deploy dir is set in a non normalized way e.g. like this DEPLOY_DIR = "${TOPDIR}/../deploy"

Then the simple string replacement which is used to calculated the link destination from the link source fails, as the link source is normalized but the deploydir prefix is not.

Normalizing deploydir fixes this.

---
 meta/lib/oe/package_manager.py | 1 +
 1 file changed, 1 insertion(+)
meta/lib/oe/package_manager.py +1 -0
index 7ae5e045df..8f4b42b0da 100644
@@ -689,6 +689,7 @@ def create_packages_dir(d, subrepo_dir, deploydir, taskname, filterbydependencie
         with open(manifest, "r") as f:
             for l in f:
                 l = l.strip()
+                deploydir = os.path.normpath(deploydir)
                 dest = l.replace(deploydir, "")
                 dest = subrepo_dir + dest
                 if l.endswith("/"):
Signature · 1 line
2.13.6