summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-07-07 14:22:33 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-07-07 14:22:33 +0000
commit4bb8e26eb81bbb9b47466b6202a28078937c03b6 (patch)
tree3f8ccc5d02ba9f727fee900e06056e34eb20c173 /urpm
parent33e56eeb13ba2fe58ee4aa38bc5dc2124888b94a (diff)
downloadurpmi-4bb8e26eb81bbb9b47466b6202a28078937c03b6.tar
urpmi-4bb8e26eb81bbb9b47466b6202a28078937c03b6.tar.gz
urpmi-4bb8e26eb81bbb9b47466b6202a28078937c03b6.tar.bz2
urpmi-4bb8e26eb81bbb9b47466b6202a28078937c03b6.tar.xz
urpmi-4bb8e26eb81bbb9b47466b6202a28078937c03b6.zip
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...)
Diffstat (limited to 'urpm')
-rw-r--r--urpm/get_pkgs.pm3
1 files changed, 1 insertions, 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"));
}
}