summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm.pm b/urpm.pm
index 37084522..7787cb8c 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -2022,10 +2022,10 @@ sub update_media {
_update_medium_second_pass($urpm, $medium, $second_pass, $options{callback});
}
- #- clean headers cache directory to remove everything that is no longer
- #- useful according to the depslist.
if ($urpm->{modified}) {
if ($options{noclean}) {
+ #- clean headers cache directory to remove everything that is no longer
+ #- useful according to the depslist.
remove_obsolete_headers_in_cache($urpm);
}
#- write config files in any case