On Fri, 2021-01-15 at 17:45 +0800, hongxu wrote: > - The dir /etc/apt was created in package apt, if package apt was not > installed, there is no need to insert package feed. Otherwise, it > will fail with no such dir > > - Output the result of apt install > > Signed-off-by: Hongxu Jia <[email protected]> > --- > meta/lib/oe/package_manager/deb/__init__.py | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff --git a/meta/lib/oe/package_manager/deb/__init__.py > b/meta/lib/oe/package_manager/deb/__init__.py > index 10ad707c23..1e2278d6a4 100644 > --- a/meta/lib/oe/package_manager/deb/__init__.py > +++ b/meta/lib/oe/package_manager/deb/__init__.py > @@ -287,7 +287,8 @@ class DpkgPM(OpkgDpkgPM): > > > > > try: > bb.note("Installing the following packages: %s" % ' '.join(pkgs)) > - subprocess.check_output(cmd.split(), stderr=subprocess.STDOUT) > + output = subprocess.check_output(cmd.split(), > stderr=subprocess.STDOUT) > + bb.note(output.decode("utf-8")) > except subprocess.CalledProcessError as e: > (bb.fatal, bb.warn)[attempt_only]("Unable to install packages. " > "Command '%s' returned > %d:\n%s" % > @@ -343,8 +344,12 @@ class DpkgPM(OpkgDpkgPM): > if feed_uris == "": > return > > > > > + > sources_conf = os.path.join("%s/etc/apt/sources.list" > % self.target_rootfs) > + if not os.path.exists(os.path.dirname(sources_conf)): > + return > + > arch_list = [] > > > > > if feed_archs is None:
I think this is resulting in these warnings: https://autobuilder.yoctoproject.org/typhoon/#/builders/50/builds/2925 Cheers, Richard
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#146862): https://lists.openembedded.org/g/openembedded-core/message/146862 Mute This Topic: https://lists.openembedded.org/mt/79698226/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
