]> code.ossystems Code Review - openembedded-core.git/commitdiff
lib/oe/package_manager: fix opkg feed generation
authorJoshua Lock <joshua.lock@collabora.co.uk>
Tue, 11 Aug 2015 08:45:02 +0000 (09:45 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 14 Aug 2015 07:28:51 +0000 (08:28 +0100)
The insert_feed_uris() method of OpkgPM was creating an initial
entry in the feeds list which pointed to the root of the ipk
directory, however the on-device package manager can't consume
this feed resulting in runtime errors - therefore we remove the
code to generate that initial feed uri.

Signed-off-by: Joshua Lock <joshua.lock@collabora.co.uk>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/package_manager.py

index 55b8ab0bcd14ca86ebd1006b6f81195c8176c5ef..2ab1d78bca47d2a24e513133728459214634dfe1 100644 (file)
@@ -1343,13 +1343,10 @@ class OpkgPM(PackageManager):
         with open(rootfs_config, "w+") as config_file:
             uri_iterator = 0
             for uri in self.feed_uris.split():
-                config_file.write("src/gz url-%d %s/ipk\n" %
-                                  (uri_iterator, uri))
-
                 for arch in self.pkg_archs.split():
                     if not os.path.exists(os.path.join(self.deploy_dir, arch)):
                         continue
-                    bb.note('Note: adding opkg channel url-%s-%d (%s)' %
+                    bb.note('Note: adding opkg feed url-%s-%d (%s)' %
                         (arch, uri_iterator, uri))
 
                     config_file.write("src/gz uri-%s-%d %s/ipk/%s\n" %