From cf08b05768d9a8a6f857bb5fc948e0df7a492fe8 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 28 Feb 2006 12:15:06 +0000 Subject: do not silently exit if $fromfile is not set --- gurpmi.addmedia | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gurpmi.addmedia') diff --git a/gurpmi.addmedia b/gurpmi.addmedia index ecedf817..a499fff9 100755 --- a/gurpmi.addmedia +++ b/gurpmi.addmedia @@ -71,14 +71,14 @@ if ($url !~ m,^(file://|ftp://|http://|removable://), || $with && !$with_hdlist) myexit(-1); } -$fromfile and interactive_msg('gurpmi.addmedia', +$fromfile and do { interactive_msg('gurpmi.addmedia', N("%s Is it ok to continue?", N("You are about to add a new packages medium, `%s'. That means you will be able to add new software packages to your system from that new medium.", $name)), - yesno => 1) or myexit(-1); + yesno => 1) or myexit(-1) }; my $urpm = urpm->new; $urpm->read_config; -- cgit v1.2.1