import-bug-from-debian: revert a change from the last merge: keep debianbts an optional dependency

Signed-off-by: Mattia Rizzolo <mattia@debian.org>
This commit is contained in:
Mattia Rizzolo 2019-09-26 10:56:48 +02:00
parent 9cd3479218
commit e083529784
No known key found for this signature in database
GPG Key ID: 0816B9E18C762BAD
2 changed files with 7 additions and 3 deletions

2
debian/control vendored
View File

@ -48,7 +48,6 @@ Depends:
python3,
python3-apt,
python3-debian,
python3-debianbts,
python3-distro-info,
python3-httplib2,
python3-launchpadlib,
@ -71,6 +70,7 @@ Recommends:
lintian,
patch,
pbuilder | cowbuilder | sbuild,
python3-debianbts,
python3-dns,
quilt,
reportbug (>= 3.39ubuntu1),

View File

@ -1,5 +1,4 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# Copyright © 2009 James Westby <james.westby@ubuntu.com>,
# 2010, 2011 Stefano Rivera <stefanor@ubuntu.com>
@ -23,7 +22,6 @@
# ##################################################################
import argparse
import debianbts
import logging
import re
import sys
@ -34,6 +32,12 @@ from launchpadlib.launchpad import Launchpad
from ubuntutools.config import UDTConfig
from ubuntutools.logger import Logger
try:
import debianbts
except ImportError:
Logger.error("Please install 'python3-debianbts' in order to use this utility.")
sys.exit(1)
def main():
bug_re = re.compile(r"bug=(\d+)")