diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-07-07 14:22:33 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-07-07 14:22:33 +0000 |
commit | 4bb8e26eb81bbb9b47466b6202a28078937c03b6 (patch) | |
tree | 3f8ccc5d02ba9f727fee900e06056e34eb20c173 /urpm/get_pkgs.pm | |
parent | 33e56eeb13ba2fe58ee4aa38bc5dc2124888b94a (diff) | |
download | urpmi-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/get_pkgs.pm')
-rw-r--r-- | urpm/get_pkgs.pm | 3 |
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")); } } |