summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm')
-rw-r--r--urpm/get_pkgs.pm5
1 files changed, 5 insertions, 0 deletions
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}));