summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-11-11 15:06:06 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-11-11 17:04:09 +0000
commitb14c176b7dd74b7d63ca0f72e6e00fbf209f5a0b (patch)
treed561a4ef0ca6b83115f163b103fa09518567dc62 /scripts
parent25a8ec6e2891b71bc280aacaf5f62ecc4b0bd1d1 (diff)
downloadopenembedded-core-contrib-b14c176b7dd74b7d63ca0f72e6e00fbf209f5a0b.tar.gz
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] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/oe-pkgdata-browser2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/oe-pkgdata-browser b/scripts/oe-pkgdata-browser
index e07005b807..a3a381923b 100755
--- a/scripts/oe-pkgdata-browser
+++ b/scripts/oe-pkgdata-browser
@@ -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])