mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 23:18:10 -05:00
Only display 'Up to date' in version.rb with verbose option (#12465)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env ruby
|
||||
# version.rb version 1.9 (for Chromebrew)
|
||||
# version.rb version 1.9.1 (for Chromebrew)
|
||||
|
||||
OPTIONS = %w[-h --help -j --json -u --update-package-files -v --verbose]
|
||||
|
||||
@@ -312,7 +312,7 @@ if filelist.length.positive?
|
||||
when 'Updated.'
|
||||
version_status_string = 'Updated.'.ljust(status_field_length).blue
|
||||
when 'Up to date.'
|
||||
version_status_string = 'Up to date.'.ljust(status_field_length).lightgreen
|
||||
version_status_string = 'Up to date.'.ljust(status_field_length).lightgreen if VERBOSE
|
||||
end
|
||||
updatable_string = (updatable_pkg[@pkg.name.to_sym] == 'Yes' ? 'Yes'.lightgreen : 'No'.lightred) if updatable_string.nil?
|
||||
cleaned_pkg_version = PackageUtils.get_clean_version(@pkg.version)
|
||||
|
||||
Reference in New Issue
Block a user