[yocto] [opkg-utils][PATCH 3/3] opkg-update-index: Emit relative path to package file

Paul Barker paul at paulbarker.me.uk
Thu May 8 09:54:45 PDT 2014


The new relpath argument of the Package object constructor is used so that the
relative path from pkg_dir to the package file will be placed in the package
index. The allows the package file to be in a subdirectory of pkg_dir.

Signed-off-by: Paul Barker <paul at paulbarker.me.uk>
---
 opkg-update-index | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/opkg-update-index b/opkg-update-index
index 1b05875..353ea69 100755
--- a/opkg-update-index
+++ b/opkg-update-index
@@ -17,7 +17,7 @@ packages.read_packages_file(pkg_dir + '/Packages')
 
 names = list(packages.packages.keys())
 
-packages.add_package(opkg.Package(pkg_filename))
+packages.add_package(opkg.Package(pkg_filename, relpath=pkg_dir))
 
 packages.write_packages_file(pkg_dir + '/Packages.new')
 os.rename(pkg_dir + '/Packages.new', pkg_dir + '/Packages')
-- 
1.9.2




More information about the yocto mailing list