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:
Ed Reel
2025-10-27 15:15:33 -05:00
committed by GitHub
parent a63365d99a
commit 300ca940f6
4 changed files with 94 additions and 32 deletions

View File

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