summaryrefslogtreecommitdiffstats
path: root/urpmi
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2002-03-07 10:51:33 +0000
committerFrancois Pons <fpons@mandriva.com>2002-03-07 10:51:33 +0000
commitb33e772cd8d0ec0b391321c143614530b3205b31 (patch)
tree36da82d46ac58d013fca579aa8f38a81323590d7 /urpmi
parentd55360c5be595c9502853c9cd6afe32ec179cb4a (diff)
downloadurpmi-b33e772cd8d0ec0b391321c143614530b3205b31.tar
urpmi-b33e772cd8d0ec0b391321c143614530b3205b31.tar.gz
urpmi-b33e772cd8d0ec0b391321c143614530b3205b31.tar.bz2
urpmi-b33e772cd8d0ec0b391321c143614530b3205b31.tar.xz
urpmi-b33e772cd8d0ec0b391321c143614530b3205b31.zip
urpmi for RC 8.2 (3.3-20mdk)
Diffstat (limited to 'urpmi')
-rwxr-xr-xurpmi3
1 files changed, 2 insertions, 1 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>;
}
});