mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-07 22:54:11 -05:00
Add gitlab and sourceforge fallbacks to version.rb (#13226)
* Add gitlab and sourceforge fallbacks to version.rb Add Compile? to version line output Update options and help to include -vv Fix candidate selection logic Add more very verbose debugging output * Rubocop lint * More rubocop linting * Handle package not found searches more elegantly * Set VERBOSE to true if VERY_VERBOSE
This commit is contained in:
3
bin/crew
3
bin/crew
@@ -91,6 +91,7 @@ String.use_color = args['--color'] || !args['--no-color']
|
||||
@update = @opt_update ? '-u' : ''
|
||||
@verbose = CREW_VERBOSE ? 'v' : ''
|
||||
@short_verbose = CREW_VERBOSE ? '-v' : ''
|
||||
@very_verbose = CREW_VERY_VERBOSE ? '-vv' : ''
|
||||
|
||||
# Make sure crew work directories exist.
|
||||
FileUtils.mkdir_p CREW_BREW_DIR
|
||||
@@ -2150,7 +2151,7 @@ def upstream_command(args)
|
||||
# Pass the whole argument input to tools/version.rb, stripping out any file extensions that occur as a result of using a wildcard argument in a directory where it matches files.
|
||||
args = { '<name>' => args.split } if args.is_a? String
|
||||
Dir.chdir CREW_PACKAGES_PATH do
|
||||
system "../tools/version.rb #{args['<name>'].join(' ').gsub('.rb', '')} #{@json} #{@update} #{@short_verbose}"
|
||||
system "../tools/version.rb #{args['<name>'].join(' ').gsub('.rb', '')} #{@json} #{@update} #{@short_verbose} #{@very_verbose}"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user