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

Bug#1032302: sbuild: Lintian exit status confusion



Package: sbuild
Version: 0.85.0

The following code in Sbuild/Build.pm is for interpreting Lintian exit status:

   my $status = $? >> 8;
   my $why = "unknown reason";
   $self->set('Lintian Reason', 'fail') if ($status == 1);
   $why = "runtime error" if ($status == 2);
   $why = "policy violation" if ($status == 1);

This used to match what Lintian did (and what was documented it did); but the exist status semantics has been changed in Lintian 2.77.0:

   * Reverse the exit statuses for program errors and policy violations.
     (Re: #709932)

So now when Lintian reports a policy violation, sbuild says it's a runtime error, and other way round.

--
Jakub Wilk


Reply to: