Commit 441e4242 authored by Ed Reel's avatar Ed Reel Committed by GitHub

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

Bump crew version
parent 5b47deb4
......@@ -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
......
# 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
......
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