diff options
| -rwxr-xr-x | scripts/oe-pkgdata-browser | 8 | 
1 files changed, 7 insertions, 1 deletions
| diff --git a/scripts/oe-pkgdata-browser b/scripts/oe-pkgdata-browser index 75d889271b..8d223185a4 100755 --- a/scripts/oe-pkgdata-browser +++ b/scripts/oe-pkgdata-browser | |||
| @@ -176,12 +176,18 @@ class PkgUi(): | |||
| 176 | return | 176 | return | 
| 177 | 177 | ||
| 178 | recipe = model[it][RecipeColumns.Recipe] | 178 | recipe = model[it][RecipeColumns.Recipe] | 
| 179 | for package in packages_in_recipe(self.pkgdata, recipe): | 179 | packages = packages_in_recipe(self.pkgdata, recipe) | 
| 180 | for package in packages: | ||
| 180 | # TODO also show PKG after debian-renaming? | 181 | # TODO also show PKG after debian-renaming? | 
| 181 | data = load_runtime_package(self.pkgdata, package) | 182 | data = load_runtime_package(self.pkgdata, package) | 
| 182 | # TODO stash data to avoid reading in on_package_changed | 183 | # TODO stash data to avoid reading in on_package_changed | 
| 183 | self.package_iters[package] = self.package_store.append([package, int(data["PKGSIZE"])]) | 184 | self.package_iters[package] = self.package_store.append([package, int(data["PKGSIZE"])]) | 
| 184 | 185 | ||
| 186 | package = recipe if recipe in packages else sorted(packages)[0] | ||
| 187 | path = self.package_store.get_path(self.package_iters[package]) | ||
| 188 | self.package_view.set_cursor(path) | ||
| 189 | self.package_view.scroll_to_cell(path) | ||
| 190 | |||
| 185 | def on_package_changed(self, selection): | 191 | def on_package_changed(self, selection): | 
| 186 | self.label.set_text("") | 192 | self.label.set_text("") | 
| 187 | self.file_store.clear() | 193 | self.file_store.clear() | 
