Revert "audit: fix revision should be removed."
This commit is contained in:
parent
f8d49dbe4e
commit
ac5b6b6eea
@ -794,12 +794,10 @@ class FormulaAuditor
|
||||
|
||||
return if formula.revision.zero?
|
||||
if formula.stable
|
||||
if revision_map = attributes_map[:revision][:stable]
|
||||
stable_revisions = revision_map[formula.stable.version]
|
||||
stable_revisions -= [formula.revision]
|
||||
if stable_revisions.empty?
|
||||
problem "'revision #{formula.revision}' should be removed"
|
||||
end
|
||||
revision_map = attributes_map[:revision][:stable]
|
||||
stable_revisions = revision_map[formula.stable.version] if revision_map
|
||||
if !stable_revisions || stable_revisions.empty?
|
||||
problem "'revision #{formula.revision}' should be removed"
|
||||
end
|
||||
else # head/devel-only formula
|
||||
problem "'revision #{formula.revision}' should be removed"
|
||||
|
Loading…
x
Reference in New Issue
Block a user