View | Details | Raw Unified | Return to bug 212091
Collapse All | Expand All

(-)ports-mgmt/portlint/src/portlint.pl (-2 / +2 lines)
Lines 395-404 Link Here
395
		}
395
		}
396
		if (/^TIMESTAMP\s+=\s+(\d+)$/) {
396
		if (/^TIMESTAMP\s+=\s+(\d+)$/) {
397
			my $now = time;
397
			my $now = time;
398
			if ($_ > $now) {
398
			if ($1 > $now) {
399
				&perror("FATAL", $file, $., "TIMESTAMP is in the future");
399
				&perror("FATAL", $file, $., "TIMESTAMP is in the future");
400
			} else {
400
			} else {
401
				if ($now - $_ > 2592000) {
401
				if ($now - $1 > 2592000) {
402
					&perror("WARN", $file, $., "TIMESTAMP is over 30 days old");
402
					&perror("WARN", $file, $., "TIMESTAMP is over 30 days old");
403
				}
403
				}
404
			}
404
			}

Return to bug 212091