[OE-core] [PATCH] package_manager.py: fix issues when dealing with FEED_DEPLOYDIR_BASE_URI

Burton, Ross ross.burton at intel.com
Thu Jan 26 13:35:44 UTC 2017


On 26 January 2017 at 13:04, <liu.ming50 at gmail.com> wrote:

> @@ -1662,14 +1662,12 @@ class OpkgPM(OpkgDpkgPM):
>              NOTE: Development-helper feature, NOT a full-fledged feed.
>              """
>              if (self.d.getVar('FEED_DEPLOYDIR_BASE_URI') or "") != "":
> +                cfg_dir_name = os.path.join(self.target_rootfs,
> "etc/opkg")
> +                bb.utils.mkdirhier(cfg_dir_name)
>                  for arch in self.pkg_archs.split():
> -                    cfg_file_name = os.path.join(self.target_rootfs,
> -
>  self.d.getVar("sysconfdir"),
> -                                                 "opkg",
> -                                                 "local-%s-feed.conf" %
> arch)
> -
> +                    cfg_file_name = os.path.join(cfg_dir_name,
> "local-%s-feed.conf" % arch)
>                      with open(cfg_file_name, "w+") as cfg_file:
> -                        cfg_file.write("src/gz local-%s %s/%s" %
> +                        cfg_file.write("src/gz local-%s %s/%s\n" %
>                                         (arch,
>                                          self.d.getVar('FEED_DEPLOYDIR_
> BASE_URI'),
>                                          arch))
>

Isn't this a bad clone of the feeds generated by PACKAGE_FEED_URIS so
should be deleted entirely?

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20170126/61ecf5e4/attachment-0002.html>


More information about the Openembedded-core mailing list