Skip to contentSkip to conversation

Fix depexp

PATCH Applied Joshua Lock 2 participants 3 messages Feb 25, 2012

lore
Share & tools
lore
#0 lore raw

cover Fix depexp

Per the patch and Yocto bug #2027 the recent BitBake patch to implement the new Hob UI deleted the file which implements thge progress bar used by depexp. The following patch adds back that file.

Cheers,
Joshua

https://bugzilla.yoctoproject.org/show_bug.cgi?id=2027

The following changes since commit c7486a09310fe63b1aa1b7b0bb9450f306b6093b:

bitbake/cooker: terminate when errors found in layer configuration (2012-02-24 23:30:16 +0000)

are available in the git repository at:
git://github.com/incandescant/bitbake josh/depexp
https://github.com/incandescant/bitbake/tree/josh/depexp

Joshua Lock (1):
crumbs: add back progress implementation for depexp

 lib/bb/ui/crumbs/progress.py |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)
 create mode 100644 lib/bb/ui/crumbs/progress.py
Signature · 1 line
1.7.7.6
#1 lore raw

PATCH 1/1 crumbs: add back progress implementation for depexp

The commit which introduced the new hob UI also deleted this class which is used by depexp.

---
 lib/bb/ui/crumbs/progress.py |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)
 create mode 100644 lib/bb/ui/crumbs/progress.py
lib/bb/ui/crumbs/progress.py new file +20 -0
new file mode 100644
index 0000000..0c7ad96
@@ -0,0 +1,20 @@
+import gtk
+
+class ProgressBar(gtk.Dialog):
+    def __init__(self, parent):
+
+        gtk.Dialog.__init__(self, flags=(gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT))
+        self.set_title("Parsing metadata, please wait...")
+        self.set_default_size(500, 0)
+        self.set_transient_for(parent)
+        self.progress = gtk.ProgressBar()
+        self.vbox.pack_start(self.progress)
+        self.show_all()
+
+    def update(self, x, y):
+        self.progress.set_fraction(float(x)/float(y))
+        self.progress.set_text("%2d %%" % (x*100/y))
+
+    def pulse(self):
+        self.progress.set_text("Loading...")
+        self.progress.pulse()
Signature · 1 line
1.7.7.6
#2 lore raw
In reply to Joshua Lock
Quoted 12 lines · Joshua Lock

Per the patch and Yocto bug #2027 the recent BitBake patch to implement the new Hob UI deleted the file which implements thge progress bar used by depexp. The following patch adds back that file.

Cheers,
Joshua

https://bugzilla.yoctoproject.org/show_bug.cgi?id=2027

The following changes since commit c7486a09310fe63b1aa1b7b0bb9450f306b6093b:

Quoted 8 lines

bitbake/cooker: terminate when errors found in layer configuration (2012-02-24 23:30:16 +0000)

are available in the git repository at:
git://github.com/incandescant/bitbake josh/depexp
https://github.com/incandescant/bitbake/tree/josh/depexp

Joshua Lock (1):
crumbs: add back progress implementation for depexp

Merged to master, thanks.

Richard