mirror of
https://git.yoctoproject.org/git/poky
synced 2026-01-01 13:58:04 +00:00
scripts/oe-package-browser: Handle no packages being built
Give the user a proper error message if there aren't packages built, rather than a less friendly traceback. [YOCTO #14619] (From OE-Core rev: 879a176f7159d1b3f5a9dc2116017b4a08172468) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit b14c176b7dd74b7d63ca0f72e6e00fbf209f5a0b) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
e8d40a2dab
commit
c04d6ccd4a
|
|
@ -236,6 +236,8 @@ class PkgUi():
|
|||
update_deps("RPROVIDES", "Provides: ", self.provides_label, clickable=False)
|
||||
|
||||
def load_recipes(self):
|
||||
if not os.path.exists(pkgdata):
|
||||
sys.exit("Error: Please ensure %s exists by generating packages before using this tool." % pkgdata)
|
||||
for recipe in sorted(os.listdir(pkgdata)):
|
||||
if os.path.isfile(os.path.join(pkgdata, recipe)):
|
||||
self.recipe_iters[recipe] = self.recipe_store.append([recipe])
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user