[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH 2/3] 'Packages completed' string should use P_() instead of N_().



Prevents this:

    Traceback (most recent call first):
      File "/tmp/updates/yuminstall.py", line 214, in callback
        self.numpkgs)
    TypeError: <lambda>() takes exactly 1 argument (3 given)
---
 yuminstall.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/yuminstall.py b/yuminstall.py
index cb30642..512042c 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -207,7 +207,7 @@ class AnacondaCallback:
             self.doneFiles += len(hdr[rpm.RPMTAG_BASENAMES])
 
             if self.donepkgs <= self.numpkgs:
-                self.progress.set_text(N_("Packages completed: "
+                self.progress.set_text(P_("Packages completed: "
                                           "%(donepkgs)d of %(numpkgs)d",
                                           "Packages completed: "
                                           "%(donepkgs)d of %(numpkgs)d",
-- 
1.6.2.5


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]