diff options
author | Pascal Terjan <pterjan@mageia.org> | 2017-10-13 16:22:47 +0100 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2017-10-13 16:22:47 +0100 |
commit | 650e21e67f99b1a1a779b11aa01a3f658e3a7619 (patch) | |
tree | d8894223e67dbef69972048f05ddd5596bb4aa70 | |
parent | 8c240e38a776c3ec3cf8168fb56579373c790893 (diff) | |
download | iurt-650e21e67f99b1a1a779b11aa01a3f658e3a7619.tar iurt-650e21e67f99b1a1a779b11aa01a3f658e3a7619.tar.gz iurt-650e21e67f99b1a1a779b11aa01a3f658e3a7619.tar.bz2 iurt-650e21e67f99b1a1a779b11aa01a3f658e3a7619.tar.xz iurt-650e21e67f99b1a1a779b11aa01a3f658e3a7619.zip |
Fix getting package name from src.rpm
Name is prefixed by revision on the buuld system. Also, this was
already done for build_timeout so share the code.
-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}"; |