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

The command:
  urpmi --X -v MySQL-devel
produce the following error instead of displaying the insert CD dialog:


read depslist file [/var/lib/urpmi/depslist.ordered]
read provides file [/var/lib/urpmi/provides]
sh: -c: line 1: syntax error near unexpected token `(c'
sh: -c: line 1: `gmessage -default Ok -buttons "Ok:0,Cancel:2" "Please
insert the medium named "CD 2 Extension (cdrom2)" on device
[/dev/cdrom]"'
medium "CD 2 Extension (cdrom2)" is not selected


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


*** urpmi       Sun Mar 18 16:27:02 2001
--- urpmi.orig  Sun Mar 18 16:26:22 2001
***************
*** 254,260 ****
  }
  
  my @sources = $urpm->upload_source_packages($local_sources, $list,
'force_local', sub {
!                                               my $msg = sprintf(_("Please insert the 
medium named \\\"%s\\\"
on device [%s]"), @_);
                                                my $msg2 = _("Press enter when it's 
done...");
                                                if ($X) {
                                                    my $ok = _("Ok");
--- 254,260 ----
  }
  
  my @sources = $urpm->upload_source_packages($local_sources, $list,
'force_local', sub {
!                                               my $msg = sprintf(_("Please insert the 
medium named \"%s\" on
device [%s]"), @_);
                                                my $msg2 = _("Press enter when it's 
done...");
                                                if ($X) {
                                                    my $ok = _("Ok");


-- 
Marc Schefer -- [EMAIL PROTECTED]

Reply via email to