summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-11-13 16:25:55 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-11-13 16:25:55 +0000
commit46b486570f071f2f7ac67c2fbe80d03b65a3771c (patch)
treef9b1ca50fa698841ef165fbb9c4e193b18d70b6a /urpm.pm
parenta07f25cb937ca8c69fd6abbd40089fbc335f5463 (diff)
downloadurpmi-46b486570f071f2f7ac67c2fbe80d03b65a3771c.tar
urpmi-46b486570f071f2f7ac67c2fbe80d03b65a3771c.tar.gz
urpmi-46b486570f071f2f7ac67c2fbe80d03b65a3771c.tar.bz2
urpmi-46b486570f071f2f7ac67c2fbe80d03b65a3771c.tar.xz
urpmi-46b486570f071f2f7ac67c2fbe80d03b65a3771c.zip
localize $dir to the block we're sure it has a meaning (and it's now no more used outside)
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 5f684900..9dbcf44b 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -1293,10 +1293,10 @@ sub _update_medium_first_pass {
#- list of rpm files for this medium, only available for local medium where
#- the source hdlist is not used (use force).
- my ($dir, $error, $retrieved_md5sum, @files);
+ my ($error, $retrieved_md5sum, @files);
#- check if the medium is using a local or a removable medium.
- if ($dir = file_from_local_url($medium->{url})) {
+ if (my $dir = file_from_local_url($medium->{url})) {
#- try to figure a possible hdlist_path (or parent directory of searched directory).
#- this is used to probe for a possible hdlist file.