瀏覽代碼

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.

(From OE-Core rev: e0ebfaa92bbfd3158b48e28dfb6435890c73bef3)

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Max Krummenacher 6 年之前
父節點
當前提交
8c0a33f326
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      meta/lib/oe/package_manager.py

+ 1 - 0
meta/lib/oe/package_manager.py

@@ -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("/"):