FreeBSD Bugzilla – Attachment 176866 Details for
Bug 212091
ports-mgmt/portlint should warn if distinfo misses TIMESTAMP (svn commit checks reject missing TIMESTAMP)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
fix issue with timestamp check
portlint.diff (text/plain), 570 bytes, created by
Joseph Mingrone
on 2016-11-10 18:54:52 UTC
(
hide
)
Description:
fix issue with timestamp check
Filename:
MIME Type:
Creator:
Joseph Mingrone
Created:
2016-11-10 18:54:52 UTC
Size:
570 bytes
patch
obsolete
>Index: ports-mgmt/portlint/src/portlint.pl >=================================================================== >--- ports-mgmt/portlint/src/portlint.pl (revision 425846) >+++ ports-mgmt/portlint/src/portlint.pl (working copy) >@@ -395,10 +395,10 @@ > } > if (/^TIMESTAMP\s+=\s+(\d+)$/) { > my $now = time; >- if ($_ > $now) { >+ if ($1 > $now) { > &perror("FATAL", $file, $., "TIMESTAMP is in the future"); > } else { >- if ($now - $_ > 2592000) { >+ if ($now - $1 > 2592000) { > &perror("WARN", $file, $., "TIMESTAMP is over 30 days old"); > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
jrm
:
maintainer-approval?
(
marcus
)
Actions:
View
|
Diff
Attachments on
bug 212091
: 176866