3 commits - liveusb/creator.py liveusb/gui.py

Luke Macken lmacken at fedoraproject.org
Wed Oct 1 14:58:23 UTC 2008


 liveusb/creator.py |    5 +++--
 liveusb/gui.py     |    4 ++--
 2 files changed, 5 insertions(+), 4 deletions(-)

New commits:
commit 68b6057084d7151ef3420a5327df9c570ce35a4f
Author: Luke Macken <lmacken at redhat.com>
Date:   Wed Oct 1 10:57:17 2008 -0400

    Fix the error message that occurs when the tools are missing (#243)

diff --git a/liveusb/creator.py b/liveusb/creator.py
index 513cd07..f63ddb5 100755
--- a/liveusb/creator.py
+++ b/liveusb/creator.py
@@ -567,8 +567,9 @@ class WindowsLiveUSBCreator(LiveUSBCreator):
             cmd = cmd.split()
         tool = os.path.join('tools', '%s.exe' % cmd[0])
         if not os.path.exists(tool):
-            raise LiveUSBError(_("Cannot find '%s'.  Make sure to extract the "
-                                 "entire liveusb-creator zip file before "
+            raise LiveUSBError(_("Cannot find") + ' %s.  ' % (cmd[0]) +
+                               _("Make sure to extract the entire "
+                                 "liveusb-creator zip file before "
                                  "running this program."))
         return LiveUSBCreator.popen(self, ' '.join([tool] + cmd[1:]),
                                     creationflags=win32process.CREATE_NO_WINDOW,


commit 0cd3212d2cb4242ea521073cbd58043ea49114be
Merge: c268c73... 14a2839...
Author: Luke Macken <lmacken at redhat.com>
Date:   Tue Sep 30 18:58:31 2008 -0400

    Merge branch 'master' of ssh://git.fedorahosted.org/git/liveusb-creator



commit c268c73f17d1ab522167f5a3b0d5aff65035d9d2
Author: Luke Macken <lmacken at redhat.com>
Date:   Fri Sep 26 20:33:39 2008 -0400

    s/Mb/MB/g

diff --git a/liveusb/gui.py b/liveusb/gui.py
index b77b467..968c295 100755
--- a/liveusb/gui.py
+++ b/liveusb/gui.py
@@ -177,7 +177,7 @@ class LiveUSBThread(QtCore.QThread):
             self.live.extract_iso()
             self.status(_("Wrote to device at %d MB/sec" % self.live.mb_per_sec))
             if self.live.overlay:
-                self.status(_("Creating %d Mb persistent overlay..." %
+                self.status(_("Creating %d MB persistent overlay..." %
                             self.live.overlay))
                 self.live.create_persistent_overlay()
             self.status(_("Configuring and installing bootloader..."))
@@ -315,7 +315,7 @@ class LiveUSBDialog(QtGui.QDialog, LiveUSBInterface):
             self.refreshDevicesButton.setEnabled(enabled)
 
     def overlay_value(self, value):
-        self.overlayTitle.setTitle(_("Persistent Storage (%d Mb)" % value))
+        self.overlayTitle.setTitle(_("Persistent Storage") + " (%d MB)" % value)
 
     def get_selected_drive(self):
         return str(self.driveBox.currentText()).split()[0]




More information about the liveusb-creator mailing list