diff options
author | Pascal Terjan <pterjan@mageia.org> | 2017-10-03 19:13:31 +0100 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2017-10-03 21:05:27 +0100 |
commit | 2d4e55f7aa8d46aa2d181e8a352c02be22e79f80 (patch) | |
tree | 0f9d55a6cafde05657326e0f4156eefe59b4b33e /lib/Iurt | |
parent | ded39fe0af95388e036f47ffdf65ad01980e7214 (diff) | |
download | iurt-2d4e55f7aa8d46aa2d181e8a352c02be22e79f80.tar iurt-2d4e55f7aa8d46aa2d181e8a352c02be22e79f80.tar.gz iurt-2d4e55f7aa8d46aa2d181e8a352c02be22e79f80.tar.bz2 iurt-2d4e55f7aa8d46aa2d181e8a352c02be22e79f80.tar.xz iurt-2d4e55f7aa8d46aa2d181e8a352c02be22e79f80.zip |
Kill upload/rsync in iurt
Diffstat (limited to 'lib/Iurt')
-rw-r--r-- | lib/Iurt/Urpmi.pm | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/Iurt/Urpmi.pm b/lib/Iurt/Urpmi.pm index baa6b92..41186a8 100644 --- a/lib/Iurt/Urpmi.pm +++ b/lib/Iurt/Urpmi.pm @@ -524,28 +524,6 @@ sub clean_urpmi_process { } } -sub update_srpm { - my ($self, $dir, $rpm, $wrong_rpm) = @_; - my $run = $self->{run}; - my ($arch) = $rpm =~ /([^\.]+)\.rpm$/ or return 0; - if (!$srpm) { - my $hdr = RPM4::Header->new("$dir/$rpm"); - $hdr or return 0; - $srpm = $hdr->queryformat('%{SOURCERPM}'); - } - $srpm = fix_srpm_name($srpm, $rpm, $wrong_rpm); - $arch, $srpm; -} - -sub fix_srpm_name { - my ($srpm, $rpm, $wrong_rpm) = @_; - my $old_srpm = $srpm; - if ($srpm =~ s/^lib64/lib/) { - push @$wrong_rpm, [ $old_srpm, $rpm ] if ref $wrong_rpm; - } - $srpm; -} - # return ("exit_code", srpm, spec) sub recreate_srpm { my ($_self, $run, $config, $chroot_tmp, $dir, $srpm, $luser, $b_retry) = @_; |