aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Iurt/Urpmi.pm
diff options
context:
space:
mode:
authorOlivier Blin <blino@mageia.org>2011-01-13 12:42:41 +0000
committerOlivier Blin <blino@mageia.org>2011-01-13 12:42:41 +0000
commite9fe96e5d2a9c3245aca5728ae62d54a1dea8ffa (patch)
treefc38602842f034bc3b53e898a7044b58f6ba1eda /lib/Iurt/Urpmi.pm
parent52c6bf712bc25b1dd318d3c485f847133f26243d (diff)
downloadiurt-e9fe96e5d2a9c3245aca5728ae62d54a1dea8ffa.tar
iurt-e9fe96e5d2a9c3245aca5728ae62d54a1dea8ffa.tar.gz
iurt-e9fe96e5d2a9c3245aca5728ae62d54a1dea8ffa.tar.bz2
iurt-e9fe96e5d2a9c3245aca5728ae62d54a1dea8ffa.tar.xz
iurt-e9fe96e5d2a9c3245aca5728ae62d54a1dea8ffa.zip
add missing parentheses in open calls
Diffstat (limited to 'lib/Iurt/Urpmi.pm')
-rw-r--r--lib/Iurt/Urpmi.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Iurt/Urpmi.pm b/lib/Iurt/Urpmi.pm
index d8c58c6..2559287 100644
--- a/lib/Iurt/Urpmi.pm
+++ b/lib/Iurt/Urpmi.pm
@@ -157,7 +157,7 @@ sub urpmi_command {
if (-d $local_media) {
mkdir("$chroot_tmp/iurt_media/");
- opendir my $dir, $local_media;
+ opendir(my $dir, $local_media);
my $next;
foreach my $f (readdir $dir) {
$f =~ /(\.rpm|^hdlist.cz)$/ or next;
@@ -268,7 +268,7 @@ sub get_local_provides {
my $program_name = $run->{program_name};
my $local_media = $self->{local_media};
- opendir my $dir, $local_media;
+ opendir(my $dir, $local_media);
plog(1, "get local provides ($local_media)");
require URPM;
my $urpm = new URPM;