On Thu, 2026-09-10 at 15:36:08 +0200, Guillem Jover wrote:
> On Thu, 2026-09-10 at 14:11:42 +0100, Ian Jackson wrote:
> > Guillem Jover writes ("Bug#1147288: dgit: Fails its autopkgtest due to 
> > scrapping dpkg-source --version"):
> > > Source: dgit
> > > Source-Version: 16.7
> > > Severity: serious
> > > Control: affects -1 src:dpkg
> > ...
> > > The dgit source package seems to be failing its autopkgtest due to its
> > > test suite scrapping the output from «dpkg-source --version» which has
> > > recently changed.
> > 
> > I haven't investigated yet but this seems like a thing that could
> > happen, indeed.  For example, some of our test cases include checks
> > that the output (eg email reports to users) contain (only!) the
> > expected output, and that means they can be a bit brittle.
> > 
> > > Or by adapting the matching on the new output.
> > 
> > So I will do this.
> > 
> > To make sure I DTRT, can you confirm which version of dpkg{,-dev} I
> > ought to be testing with?
> 
> Starting with dpkg-dev 1.23.8 the output is like this:
> 
>   $ dpkg-source --version | head -1
>   dpkg-source version 1.23.11
> 
> With earlier versions the output is like this:
> 
>   $ dpkg-source --version | head -1
>   Debian dpkg-source version 1.22.22.

Ah, forgot to mention, for the future if there's interest I could add a
--robot modifier to dpkg-source, like it is supported in dpkg, to have
machine readable output for --version, like this:

  $ dpkg --robot --version; echo
  1.23.11
  $

Thanks,
Guillem

Reply via email to