summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/packageselectionpage.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/packageselectionpage.py')
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/packageselectionpage.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/packageselectionpage.py b/bitbake/lib/bb/ui/crumbs/packageselectionpage.py
index e3d35effe4..edbafbd3a5 100755
--- a/bitbake/lib/bb/ui/crumbs/packageselectionpage.py
+++ b/bitbake/lib/bb/ui/crumbs/packageselectionpage.py
@@ -165,7 +165,7 @@ class PackageSelectionPage (HobPage):
165 if binb: 165 if binb:
166 self.builder.show_binb_dialog(binb) 166 self.builder.show_binb_dialog(binb)
167 167
168 def view_log_clicked_cb(self, button, log_file): 168 def open_log_clicked_cb(self, button, log_file):
169 if log_file: 169 if log_file:
170 os.system("xdg-open /%s" % log_file) 170 os.system("xdg-open /%s" % log_file)
171 171
@@ -173,13 +173,13 @@ class PackageSelectionPage (HobPage):
173 children = self.button_box.get_children() or [] 173 children = self.button_box.get_children() or []
174 for child in children: 174 for child in children:
175 self.button_box.remove(child) 175 self.button_box.remove(child)
176 # re-packed the buttons as request, add the 'view log' button if build success 176 # re-packed the buttons as request, add the 'open log' button if build success
177 self.button_box.pack_end(self.build_image_button, expand=False, fill=False) 177 self.button_box.pack_end(self.build_image_button, expand=False, fill=False)
178 if log_file: 178 if log_file:
179 view_log_button = HobAltButton("View log") 179 open_log_button = HobAltButton("Open log")
180 view_log_button.connect("clicked", self.view_log_clicked_cb, log_file) 180 open_log_button.connect("clicked", self.open_log_clicked_cb, log_file)
181 view_log_button.set_tooltip_text("Open the building log files") 181 open_log_button.set_tooltip_text("Open the build's log file")
182 self.button_box.pack_end(view_log_button, expand=False, fill=False) 182 self.button_box.pack_end(open_log_button, expand=False, fill=False)
183 self.button_box.pack_end(self.back_button, expand=False, fill=False) 183 self.button_box.pack_end(self.back_button, expand=False, fill=False)
184 self.show_all() 184 self.show_all()
185 185