Ticket #48692: portlint.diff
File portlint.diff, 984 bytes (added by kurthindenburg (Kurt Hindenburg), 9 years ago) |
---|
-
port1.0/portlint.tcl
149 149 set require_after "" 150 150 set seen_portsystem false 151 151 set seen_portgroup false 152 set seen_revision false 152 153 set in_description false 153 154 154 155 array set portgroups {} … … 329 330 incr errors 330 331 } 331 332 333 if {[string match "revision*" $line]} { 334 set seen_revision true 335 } 336 332 337 ### TODO: more checks to Portfile syntax 333 338 334 339 incr lineno … … 430 435 ui_error "Port revision is not numeric: $revision" 431 436 incr errors 432 437 } 438 if {$seen_revision && [string is integer -strict $revision] && $revision == 0} { 439 ui_warn "Port revision matches the default so no need to include it: $revision" 440 incr warnings 441 } 433 442 434 443 set variantnumber 1 435 444 foreach variant $all_variants {