aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Iurt/Urpmi.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-03-24 16:18:41 +0000
committerThierry Vignaud <tv@mageia.org>2012-03-24 16:18:41 +0000
commitec73b025873a2c2cd6eaca5809e3dc5dfbccb52a (patch)
treeeb6de2f27b52c685170d552292733a9ce8c9c286 /lib/Iurt/Urpmi.pm
parent0946c9af08721c1ba8a37f005e9041bf8d07e988 (diff)
downloadiurt-ec73b025873a2c2cd6eaca5809e3dc5dfbccb52a.tar
iurt-ec73b025873a2c2cd6eaca5809e3dc5dfbccb52a.tar.gz
iurt-ec73b025873a2c2cd6eaca5809e3dc5dfbccb52a.tar.bz2
iurt-ec73b025873a2c2cd6eaca5809e3dc5dfbccb52a.tar.xz
iurt-ec73b025873a2c2cd6eaca5809e3dc5dfbccb52a.zip
cosmetic
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 36fe903..cdeb548 100644
--- a/lib/Iurt/Urpmi.pm
+++ b/lib/Iurt/Urpmi.pm
@@ -278,7 +278,7 @@ sub get_local_provides {
opendir(my $dir, $local_media);
plog(1, "get local provides ($local_media)");
require URPM;
- my $urpm = new URPM;
+ my $urpm = URPM->new;
foreach my $d (readdir $dir) {
$d =~ /\.src\.rpm$/ and next;
$d =~ /\.rpm$/ or next;
@@ -304,7 +304,7 @@ sub get_build_requires {
my (undef, $chroot_tmp) = create_temp_chroot($run, $config, $run->{chroot_tmp}, $run->{chroot_tar}) or return;
add_local_user($chroot_tmp, $run, $config, $luser, $run->{uid}) or return;
- my $urpm = new URPM;
+ my $urpm = URPM->new;
foreach my $p (@{$run->{todo}}) {
my ($dir, $srpm, $s) = @$p;
$self->recreate_srpm($run, $config, $chroot_tmp, $dir, $srpm, $run->{user}) or return;