diff --git a/src/oebuild/app/plugins/update/update.py b/src/oebuild/app/plugins/update/update.py index 2a7e7c863016ac4be8f96cd28ab79bcc9d18d890..9a3ef1f1927c003c30f03d274f7e7cbe10fb81e6 100644 --- a/src/oebuild/app/plugins/update/update.py +++ b/src/oebuild/app/plugins/update/update.py @@ -118,6 +118,14 @@ class Update(OebuildCommand): if update_docker: try: + # check if yocto exists, if not exists, give a notice + if not os.path.exists(self.configure.source_yocto_dir()): + logger.error(textwrap.dedent( + "The container's update depends on yocto-meta-openeuler." + " Please either run 'oebuild update yocto' or manually " + "download yocto-meta-openeuler in the src directory." + )) + sys.exit(-1) oebuild_util.check_docker() # check yocto/oebuild/env.yaml,get container_tag and update docker image self.docker_image_update(args.docker_tag)