On Thu, Apr 8, 2021 at 12:36 PM Mattia Rizzolo <mat...@debian.org> wrote:
>
> On Tue, Mar 02, 2021 at 10:21:47AM +0100, Ondřej Surý wrote:
> > commit ee9b8756d9e81003ad199f24a15f69201009bbe7 in upstream package
> > (included in 0.179) botched the ability to run backportpackage on the
> > dsc files:
>
> ahem.
>
> >     $ /usr/bin/backportpackage -b -w tmp php-grpc_1.35.0+1.33.1-2.dsc # 
> > just a random package
> >     Traceback (most recent call last):
> >       File "/usr/bin/backportpackage", line 424, in <module>
> >       sys.exit(main(sys.argv))
> >       File "/usr/bin/backportpackage", line 394, in main
> >       pkg = find_package(opts.mirror,
> >       File "/usr/bin/backportpackage", line 204, in find_package
> >       return SourcePackage(version=version, dscfile=package,
> >     TypeError: Can't instantiate abstract class SourcePackage with abstract 
> > method distribution

I'm surprised that *ever* worked, as it was clearly ignoring the
warning (from 2010) in the SourcePackage() comment, "Use
DebianSourcePackage or UbuntuSourcePackage instead of using this".

I never use backportpackage myself, but just changing it to use
UbuntuSourcePackage instead should work.
https://code.launchpad.net/~ddstreet/ubuntu-dev-tools/+git/ubuntu-dev-tools/+merge/400848

>
> Dan: ↑
>
> --
> regards,
>                         Mattia Rizzolo
>
> GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540      .''`.
> More about me:  https://mapreri.org                             : :'  :
> Launchpad user: https://launchpad.net/~mapreri                  `. `'`
> Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-

Reply via email to