Fix crew whatprovides (#5334)

Simplify regex search
This commit is contained in:
Ed Reel
2021-03-07 02:15:25 -06:00
committed by GitHub
parent 8f3f9177c3
commit d822bef980
2 changed files with 2 additions and 2 deletions

2
crew
View File

@@ -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

View File

@@ -1,6 +1,6 @@
# 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