From 4bb8e26eb81bbb9b47466b6202a28078937c03b6 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 7 Jul 2008 14:22:33 +0000 Subject: adapt the error message: --install-src is allowed for non-root for some time, so the real pb here is $cachedir/partial being fucked up (occurs for example when /var is being removed during urpmi...) --- urpm/get_pkgs.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/urpm/get_pkgs.pm b/urpm/get_pkgs.pm index c489cf21..a6bdcde9 100644 --- a/urpm/get_pkgs.pm +++ b/urpm/get_pkgs.pm @@ -157,8 +157,7 @@ sub download_packages_of_distant_media { mkdir "$cachedir/partial"; mkdir "$cachedir/rpms"; } else { - $urpm->{error}(N("sorry, you can't use --install-src to install remote .src.rpm files")); - exit 1; + $urpm->{fatal}(1, N("Can not download packages into %s", "$cachedir/partial")); } } -- cgit v1.2.1