From cf6e8273c1e6396d7c1559aa4b0979f33e196606 Mon Sep 17 00:00:00 2001 From: lixinyu Date: Wed, 3 Jan 2024 14:55:22 +0800 Subject: [PATCH] configure: fix a bug * when we run some command that need to detect the topdir, we will face the error, because the logic about check topdir has bug, it only check .oebuild directory, but no more anything, however yocto-meta-openeuler repo alse has .oebuld directory, so when we run such command need to detect the topdir will raise error, now fix it. Signed-off-by: lixinyu --- src/oebuild/configure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oebuild/configure.py b/src/oebuild/configure.py index ba81884..fffb2bd 100644 --- a/src/oebuild/configure.py +++ b/src/oebuild/configure.py @@ -77,7 +77,7 @@ class Configure: cur_dir = pathlib.Path(start or os.getcwd()) while True: - if (cur_dir / '.oebuild').is_dir(): + if (cur_dir / '.oebuild/config').is_file(): return os.fspath(cur_dir) parent_dir = cur_dir.parent -- Gitee