aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Iurt
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2022-09-13 16:19:13 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2022-09-13 16:19:19 +0200
commitba79fd27ee268ef00b90aa1e7eb4c87a63ab72e1 (patch)
tree986c32903aa569791a51089b7642703cb7525bfe /lib/Iurt
parent6e223990ca464a9bff181eff596844f0241434be (diff)
downloadiurt-ba79fd27ee268ef00b90aa1e7eb4c87a63ab72e1.tar
iurt-ba79fd27ee268ef00b90aa1e7eb4c87a63ab72e1.tar.gz
iurt-ba79fd27ee268ef00b90aa1e7eb4c87a63ab72e1.tar.bz2
iurt-ba79fd27ee268ef00b90aa1e7eb4c87a63ab72e1.tar.xz
iurt-ba79fd27ee268ef00b90aa1e7eb4c87a63ab72e1.zip
Fix matching bogus foobar.spec.license
Diffstat (limited to 'lib/Iurt')
-rw-r--r--lib/Iurt/Urpmi.pm2
1 files changed, 1 insertions, 1 deletions
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) {