diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-11-11 15:06:06 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-12-02 16:53:07 +0000 |
commit | 82b03a6837a3fa5e5e13773185888c08e30a4518 (patch) | |
tree | 31f1e5f8b345927ba0a19ac13ef3713120e6c93c /scripts | |
parent | e006c87e225a8bf1c0338b54fbbdbfbcd3634ff6 (diff) | |
download | poky-82b03a6837a3fa5e5e13773185888c08e30a4518.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]
(From OE-Core rev: 4b6d3564c09dbea3794f2915b65cbd2314ccffb6)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit b14c176b7dd74b7d63ca0f72e6e00fbf209f5a0b)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/oe-pkgdata-browser | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/oe-pkgdata-browser b/scripts/oe-pkgdata-browser index 8d223185a4..65a6ee956e 100755 --- a/scripts/oe-pkgdata-browser +++ b/scripts/oe-pkgdata-browser | |||
@@ -236,6 +236,8 @@ class PkgUi(): | |||
236 | update_deps("RPROVIDES", "Provides: ", self.provides_label, clickable=False) | 236 | update_deps("RPROVIDES", "Provides: ", self.provides_label, clickable=False) |
237 | 237 | ||
238 | def load_recipes(self): | 238 | def load_recipes(self): |
239 | if not os.path.exists(pkgdata): | ||
240 | sys.exit("Error: Please ensure %s exists by generating packages before using this tool." % pkgdata) | ||
239 | for recipe in sorted(os.listdir(pkgdata)): | 241 | for recipe in sorted(os.listdir(pkgdata)): |
240 | if os.path.isfile(os.path.join(pkgdata, recipe)): | 242 | if os.path.isfile(os.path.join(pkgdata, recipe)): |
241 | self.recipe_iters[recipe] = self.recipe_store.append([recipe]) | 243 | self.recipe_iters[recipe] = self.recipe_store.append([recipe]) |