[EMAIL PROTECTED] writes:

> The latest urpmi seems to have some problems displaying some dialog
> boxes (This problem is also affecting rpmdrake since its relying on
> urpmi).

[...]

> The problem is related to the " character in the string to be displayed.
> Here's a diff of the fix (simply escapes the " character).

how i like patches :)


i've changed it a little bit to be even more robust, and also to keep the
i18n'ed message the same, and also to keep the stdout (non-X) message nice.

--------------------------------------------------------------------------------
diff -u -r1.53 urpmi
--- urpmi       2001/03/07 16:02:54     1.53
+++ urpmi       2001/03/18 16:11:32
@@ -259,6 +259,7 @@
                                                if ($X) {
                                                    my $ok = _("Ok");
                                                    my $cancel = _("Cancel");
+                                                   $msg =~ s/"/\\"/g;
                                                    `gmessage -default $ok -buttons 
"$ok:0,$cancel:2" "$msg"`;
                                                    !$?;
                                                } else {
--------------------------------------------------------------------------------

now, would be so kind and test? :)
(urpmi-1.5-22mdk is coming with the fix)


thanks, cu Pixel.

Reply via email to