mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
Escape dash for regex search in crew whatprovides (#5442)
Bump crew version
This commit is contained in:
3
crew
3
crew
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user