mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 23:18:10 -05:00
Update Updater workflows, have version.rb deduplicate update list. (#12803)
* Update Updater workflows, have version.rb deduplicate update list. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Ignore shellcheck complaint. * Add updater exclusions. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add ruby to updater exclusion. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add tika versioning exclusion. Signed-off-by: Satadru Pramanik <satadru@gmail.com> --------- Signed-off-by: Satadru Pramanik <satadru@gmail.com>
This commit is contained in:
committed by
GitHub
parent
5943468777
commit
bc14d4dfb4
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env ruby
|
||||
# version.rb version 2.6 (for Chromebrew)
|
||||
# version.rb version 2.7 (for Chromebrew)
|
||||
|
||||
OPTIONS = %w[-h --help -j --json -u --update-package-files -v --verbose]
|
||||
|
||||
@@ -178,6 +178,9 @@ else
|
||||
end
|
||||
end
|
||||
|
||||
# Remove duplicates.
|
||||
filelist.uniq!
|
||||
|
||||
if filelist.length.positive?
|
||||
max_pkg_name_length = File.basename(filelist.max_by(&:length)).length - 3
|
||||
package_field_length = [max_pkg_name_length, 7].max + 1
|
||||
|
||||
Reference in New Issue
Block a user