Re: [SCM] Debian package checker branch, master, updated. 1.24.4-117-g99615b2
On Sat, 2008-09-13 at 09:49 +0000, Adam D. Barratt wrote:
> diff --git a/lib/Lintian/Schedule.pm b/lib/Lintian/Schedule.pm
> index 3c36363..a0d2dc6 100644
> --- a/lib/Lintian/Schedule.pm
> +++ b/lib/Lintian/Schedule.pm
> @@ -47,6 +47,12 @@ sub add_file {
> } else {
> ($pkg, $ver, $arch) =
> @pkg_info{qw(package version architecture)};
> +
> + if (!defined $arch) {
> + $arch = $file;
> + $arch =~ s/\.u?deb$//;
> + $arch =~ s/.*_//;
> + }
> }
This should possibly be another call to get_deb_info(), but that seemed
a little overkill when we already had the rest of the information; more
than happy to change it though.
Adam
Reply to: