Allow "all" value for gnome_devel_allowlist
The `gnome_devel_allowlist` for formulae requires a specific version as a value (e.g., `"1.57"` to allow 1.57.x versions) and this requires us to update the value when a new odd-numbered minor version appears. For example, the newest `pango` version is 1.57.0 but autobump was unable to update the formula because the `gnome_devel_allowlist` value was `"1.55"`. `pango` doesn't use the "odd-numbered minor versions are development releases" GNOME version scheme but we have to manually update the allowlist because we don't have a version-independent way of opting out of the GNOME version scheme. This adds support for an alternative `"all"` value in `gnome_devel_allowlist` (similar to `github_prerelease_allowlist`), which essentially opts the formula out of the GNOME version scheme restrictions regardless of the version.
This commit is contained in:
		
							parent
							
								
									9aa286faa0
								
							
						
					
					
						commit
						d50c1faeed
					
				@ -831,6 +831,7 @@ module Homebrew
 | 
			
		||||
      when %r{download\.gnome\.org/sources}, %r{ftp\.gnome\.org/pub/GNOME/sources}i
 | 
			
		||||
        version_prefix = stable.version.major_minor
 | 
			
		||||
        return if formula.tap&.audit_exception :gnome_devel_allowlist, formula.name, version_prefix
 | 
			
		||||
        return if formula.tap&.audit_exception :gnome_devel_allowlist, formula.name, "all"
 | 
			
		||||
        return if stable_url_version < Version.new("1.0")
 | 
			
		||||
        # All minor versions are stable in the new GNOME version scheme (which starts at version 40.0)
 | 
			
		||||
        # https://discourse.gnome.org/t/new-gnome-versioning-scheme/4235
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user