backportpackage: Fix incorrectly reporting unknown distribution for Ubuntu

Fix incorrectly reporting unknown distribution for Ubuntu after commit
7fc6788b35d32aeb96c7cf81303853d4f31028d1 ("backportpackage: fix
automatic selection of the target release").

LP: #2013237
Signed-off-by: Nathan Rennie-Waldock <nathan.renniewaldock@gmail.com>
This commit is contained in:
Nathan Rennie-Waldock 2023-03-29 19:26:55 +01:00 committed by Benjamin Drung
parent 17d2770451
commit 66a2773c1c

View File

@ -449,7 +449,7 @@ def main(argv):
if current_distro == "Ubuntu":
args.dest_releases = [UbuntuDistroInfo().lts()]
if current_distro == "Debian":
elif current_distro == "Debian":
args.dest_releases = [DebianDistroInfo().stable()]
else:
error("Unknown distribution %s, can't guess target release", current_distro)