Escape dash for regex search in crew whatprovides (#5442)

Bump crew version
This commit is contained in:
Ed Reel
2021-03-17 10:54:35 -05:00
committed by GitHub
parent 5b47deb4ee
commit 441e42420d
2 changed files with 3 additions and 2 deletions

3
crew
View File

@@ -397,10 +397,11 @@ end
def whatprovides (regexPat)
fileArray = []
needle = regexPat.gsub(/-/,'_').gsub(/_/,'\-')
Dir[CREW_META_PATH + '*.filelist'].each do |packageList|
packageName = File.basename packageList, '.filelist'
File.readlines(packageList).each do |line|
found = line[/#{regexPat}/] if line.ascii_only?
found = line[/#{needle}/] 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.15'
CREW_VERSION = '1.7.16'
ARCH_ACTUAL = `uname -m`.strip
# This helps with virtualized builds on aarch64 machines