(dirt-lint dirt)
(debian-version-lint version (debian-version "."))
(released-version-lint version (released-version (project-name)) changes)
+ (desktop-version-lint version)
(if core-lint-hook
(core-lint-hook version changes dirt)
'()))))
(else
'())))
+(define (desktop-version-lint version)
+ (let ((line (find (lambda (l) (string-prefix? "Version=" l))
+ (file-lines "debian/mit-scheme-pucked.desktop"))))
+ (cond ((not line) (list "File not found: debian/mit-scheme-pucked.desktop"))
+ ((not (string=? line (string "Version=" (version-string version))))
+ (list "Version mismatch in debian/mit-scheme-pucked.desktop."))
+ (else '()))))
+
(define (dirt-lint dirt)
(if (pair? dirt)
(cons "Uncommitted files:" dirt)