Commit d822bef9 authored by Ed Reel's avatar Ed Reel Committed by GitHub

Fix crew whatprovides (#5334)

Simplify regex search
parent 8f3f9177
......@@ -384,7 +384,7 @@ def whatprovides (pkgName)
if packageList[/\.filelist$/]
packageName = File.basename packageList, '.filelist'
File.readlines(packageList).each do |line|
found = line[/#{Regexp.new(pkgName)}/]
found = line[/#{pkgName}/] if line.ascii_only?
if found
fileLine = packageName + ': ' + line
if not fileArray.include? fileLine
......
# Defines common constants used in different parts of crew
CREW_VERSION = '1.7.9'
CREW_VERSION = '1.7.10'
ARCH_ACTUAL = `uname -m`.strip
# This helps with virtualized builds on aarch64 machines
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment