diff options
-rw-r--r-- | NEWS | 3 | ||||
-rwxr-xr-x | iurt | 5 |
2 files changed, 5 insertions, 3 deletions
@@ -1,3 +1,6 @@ +0.7.4 +- iurt: fix getting package name from src.rpm name + 0.7.3 - iurt: change use_netns to allow per package setting @@ -720,8 +720,8 @@ sub rebuild_one { retry: $urpmi->clean_urpmi_process; - $srpm =~ /(.*)-[^-]+-[^-]+\.src\.rpm$/ or return $srpm; - my $srpm_name = $1; + my ($srpm_name) = $srpm =~ /(?:.*:)?(.*)-[^-]+-[^-]+\.src\.rpm$/; + $srpm_name or return $srpm; if (!$run{use_old_chroot}) { plog('DEBUG', 'Not reusing old chroot'); @@ -810,7 +810,6 @@ retry: $command = "rpmbuild -b$run{stop} /home/$luser/rpmbuild/SPECS/$spec"; } - my ($srpm_name) = $srpm =~ /(?:.*:)?(.*)-[^-]+-[^-]+\.src\.rpm$/; my $icecream; if ($run{icecream}) { $icecream = "RPM_BUILD_NCPUS=$run{icecream}"; |