[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#517635: lintian: should warn about incorrect Vcs-* fields



On Sun, Mar 01, 2009 at 03:34:28AM +0100, Євгеній Мещеряков wrote:
> Lintian should warn if Vcs-* filed contains URL for different vcs.
> Example:
> 	Vcs-Svn: git://git.debian.org/collab-maint/gpscorrelate.git

I've started working on this one. Here is what I have so far.
The first hash contains URIs that look good, the second contains
URIs that look valid but are for a format which probably requires
an account on some machine.

my %VCS_RECOMMENDED_URIS = (
    browser => qr;^https?://;,
    arch    => qr;^https?://;,
    bzr     => qr;^(lp:~|(?:nosmart\+)?https?://);
    cvs     => qr;^:pserver:;,
    darcs   => qr;^https?://;,
    hg      => qr;^https?://;,
    git     => qr;^(git|https?|rsync)://;,
    svn     => qr;^(svn|(?:svn\+)?https?)://;,
    mtn     => undef, #XXX                                                               
);
my %VCS_VALID_URIS = (
    arch    => qr;^https?://;,
    bzr     => qr;^(sftp|(?:bzr\+)?ssh)://);
    cvs     => qr;^:ext:;,
    git     => qr;^ssh://;,
    svn     => qr;^(?:svn\+)?ssh://;,
);

Comments welcome.

Gruesse,
-- 
Frank Lichtenheld <djpig@debian.org>
www: http://www.djpig.de/



Reply to: