summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-08-08 15:58:32 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-08-08 15:58:32 +0000
commit694b9baf0a8ec41d10f1213ce464fa395573f8df (patch)
treeaf129dcacf4e9ce735f030b67b7afd9ec4d1516a
parent6ba6650e6ac35a3b9605f5e7b4598795e5436024 (diff)
downloadurpmi-694b9baf0a8ec41d10f1213ce464fa395573f8df.tar
urpmi-694b9baf0a8ec41d10f1213ce464fa395573f8df.tar.gz
urpmi-694b9baf0a8ec41d10f1213ce464fa395573f8df.tar.bz2
urpmi-694b9baf0a8ec41d10f1213ce464fa395573f8df.tar.xz
urpmi-694b9baf0a8ec41d10f1213ce464fa395573f8df.zip
- urpmi
o explicit error when using "urpmi ---install-src" as user with remote media
-rw-r--r--NEWS3
-rw-r--r--urpm/get_pkgs.pm5
2 files changed, 8 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index caa830ed..02eb362c 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- urpmi
+ o explicit error when using "urpmi ---install-src" as user with remote media
+
Version 4.9.28 - 3 August 2007, by Pascal "Pixel" Rigaux
- urpmi
diff --git a/urpm/get_pkgs.pm b/urpm/get_pkgs.pm
index c1f1de0c..6b2a5a15 100644
--- a/urpm/get_pkgs.pm
+++ b/urpm/get_pkgs.pm
@@ -175,6 +175,11 @@ sub download_packages_of_distant_media {
}
}
+ if (%distant_sources && ! -w "$urpm->{cachedir}/partial") {
+ $urpm->{error}(N("sorry you can't --install-src remove .src.rpm files"));
+ exit 1;
+ }
+
#- download files from the current medium.
if (%distant_sources) {
$urpm->{log}(N("retrieving rpm files from medium \"%s\"...", $urpm->{media}[$n]{name}));