Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hugegreenbug committed Jun 17, 2015
1 parent 4d6976f commit d5d0804
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions distroshare-ubuntu-imager.sh
Expand Up @@ -10,7 +10,7 @@

#GPL2 License

VERSION="1.0.14"
VERSION="1.0.15"

echo "
################################################
Expand Down Expand Up @@ -536,7 +536,7 @@ done
rm -f "$CASPER_EXTRA_SCRIPT"

echo "Uninstalling Ubiquity"
apt-get -q=2 remove casper lupin-casper ubiquity
apt-get -q=2 remove casper lupin-casper ubiquity user-setup

if [ -n "$EXTRA_PKGS" ]; then
echo "Removing extra packages from installed system"
Expand Down
8 changes: 4 additions & 4 deletions ubiquity_frontend_gtk_dialog_size.patch
Expand Up @@ -14,7 +14,7 @@

+ #Re-format error messages so each line is at most 100 characters long
+ def fix_msg_line_len(self, msg):
+ '\n'.join(textwrap.wrap(msg, 100))
+ return '\n'.join(textwrap.wrap(msg, 100))
+
def all_children(self, parent):
if isinstance(parent, Gtk.Container):
Expand All @@ -23,23 +23,23 @@
else:
txt = self.finished_label.get_label()
txt = txt.replace('${RELEASE}', misc.get_release().name)
+ txt = fix_msg_line_len(txt)
+ txt = self.fix_msg_line_len(txt)
self.finished_label.set_label(txt)
with misc.raised_privileges():
with open('/var/run/reboot-required', "w"):
@@ -1723,6 +1729,7 @@
self.set_busy_cursor(False)
if not msg:
msg = title
+ msg = fix_msg_line_len(msg)
+ msg = self.fix_msg_line_len(msg)
dialog = Gtk.MessageDialog(
self.live_installer, Gtk.DialogFlags.MODAL,
Gtk.MessageType.ERROR, Gtk.ButtonsType.OK, msg)
@@ -1771,6 +1778,7 @@
self.set_busy_cursor(False)
if not msg:
msg = title
+ msg = fix_msg_line_len(msg)
+ msg = self.fix_msg_line_len(msg)
buttons = []
for option in options:
if use_templates:

0 comments on commit d5d0804

Please sign in to comment.