Package: lintian Version: 2.72.0 Severity: wishlist Please warn about Homepage fields that point to download directories. Download directories are not "homepages" and should not be used like that. This complaint should be either info or pedantic level and should only be applied to Homepage fields not all URLs in the package.
Since lintian doesn't do network requests it will have to detect solely based on the URL rather than content of the Homepage. URLs to ftp servers that end in a slash should be detected: ^ftp://.*/$ Maybe any ftp URL that doesn't end in .htm/.html should be detected? You could also detect specific servers based on the URLs: The first one that could be added is the GNU FTP server: Please match this regular expression: (https?|ftp)://ftp\.gnu\.org/gnu/(.*) and suggest replacing them with this replacement: https://www.gnu.org/software/$2 Please match this regular expression: (https?|ftp)://ftp\.gnu\.org/gnu/aspell/dict/[^/]*/ and suggest replacing them with this replacement (and ignore that URL): https://ftp.gnu.org/gnu/aspell/dict/0index.html These are the currently known ftp.gnu.org URLs: $ grep -h Homepage.*ftp.gnu.org /var/lib/apt/lists/*Sources | sort -u Homepage: ftp://ftp.gnu.org/gnu/aspell/dict/am/ Homepage: ftp://ftp.gnu.org/gnu/aspell/dict/he/ Homepage: ftp://ftp.gnu.org/gnu/aspell/dict/hy/ Homepage: ftp://ftp.gnu.org/non-gnu/chinese-fonts-truetype/ Homepage: http://ftp.gnu.org/gnu/aspell/dict/0index.html Homepage: http://ftp.gnu.org/gnu/aspell/dict/ar/ Homepage: http://ftp.gnu.org/gnu/aspell/dict/fa/ Homepage: http://ftp.gnu.org/gnu/bc/ Homepage: http://ftp.gnu.org/gnu/pem/ -- bye, pabs https://wiki.debian.org/PaulWise
signature.asc
Description: This is a digitally signed message part