From ba79fd27ee268ef00b90aa1e7eb4c87a63ab72e1 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 13 Sep 2022 16:19:13 +0200 Subject: Fix matching bogus foobar.spec.license --- lib/Iurt/Urpmi.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Iurt/Urpmi.pm b/lib/Iurt/Urpmi.pm index 7cce25e..d09383f 100644 --- a/lib/Iurt/Urpmi.pm +++ b/lib/Iurt/Urpmi.pm @@ -499,7 +499,7 @@ sub recreate_srpm { my $filelist = `rpm -qlp $oldsrpm`; my ($name) = $srpm =~ /(?:.*:)?(.*)-[^-]+-[^-]+\.src\.rpm$/; foreach my $file (split "\n", $filelist) { - if ($file =~ /(.*)\.spec/) { + if ($file =~ /(.*)\.spec$/) { if (!$spec) { $spec = $file; } elsif ($1 eq $name) { -- cgit v1.2.1