summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xurpmi3
-rw-r--r--urpmi.spec6
2 files changed, 7 insertions, 2 deletions
diff --git a/urpmi b/urpmi
index 2bd36d11..226527a4 100755
--- a/urpmi
+++ b/urpmi
@@ -251,6 +251,7 @@ my $ask_choice = sub {
while (1) {
printf SAVEOUT _("What is your choice? (1-%d) ", $i);
$n = <STDIN>;
+ defined $n or exit 1;
1 <= $n && $n <= $i and last;
print SAVEOUT _("Sorry, bad choice, try again\n");
}
@@ -351,7 +352,7 @@ my %sources = $urpm->download_source_packages($local_sources, $list, ($X ? '' :
} else {
print SAVEOUT "$msg\n$msg2 ";
}
- <STDIN>; 1;
+ defined <STDIN>;
}
});
diff --git a/urpmi.spec b/urpmi.spec
index 271f53a0..ae7117d9 100644
--- a/urpmi.spec
+++ b/urpmi.spec
@@ -2,7 +2,7 @@
Name: urpmi
Version: 3.3
-Release: 19mdk
+Release: 20mdk
License: GPL
Source0: %{name}.tar.bz2
Source1: %{name}.logrotate
@@ -144,6 +144,10 @@ fi
%changelog
+* Thu Mar 7 2002 François Pons <fpons@mandrakesoft.com> 3.3-20mdk
+- fixed when console has been closed and urpmi ask for changing
+ medium (currently it open/eject the device).
+
* Tue Mar 5 2002 François Pons <fpons@mandrakesoft.com> 3.3-19mdk
- fixed parse_synthesis when a the src package is following its
binary counterpart (overidding its description).