mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 08:01:09 +00:00
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:
parent
9cd3479218
commit
e083529784
2
debian/control
vendored
2
debian/control
vendored
@ -48,7 +48,6 @@ Depends:
|
|||||||
python3,
|
python3,
|
||||||
python3-apt,
|
python3-apt,
|
||||||
python3-debian,
|
python3-debian,
|
||||||
python3-debianbts,
|
|
||||||
python3-distro-info,
|
python3-distro-info,
|
||||||
python3-httplib2,
|
python3-httplib2,
|
||||||
python3-launchpadlib,
|
python3-launchpadlib,
|
||||||
@ -71,6 +70,7 @@ Recommends:
|
|||||||
lintian,
|
lintian,
|
||||||
patch,
|
patch,
|
||||||
pbuilder | cowbuilder | sbuild,
|
pbuilder | cowbuilder | sbuild,
|
||||||
|
python3-debianbts,
|
||||||
python3-dns,
|
python3-dns,
|
||||||
quilt,
|
quilt,
|
||||||
reportbug (>= 3.39ubuntu1),
|
reportbug (>= 3.39ubuntu1),
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
# Copyright © 2009 James Westby <james.westby@ubuntu.com>,
|
# Copyright © 2009 James Westby <james.westby@ubuntu.com>,
|
||||||
# 2010, 2011 Stefano Rivera <stefanor@ubuntu.com>
|
# 2010, 2011 Stefano Rivera <stefanor@ubuntu.com>
|
||||||
@ -23,7 +22,6 @@
|
|||||||
# ##################################################################
|
# ##################################################################
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import debianbts
|
|
||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
@ -34,6 +32,12 @@ from launchpadlib.launchpad import Launchpad
|
|||||||
from ubuntutools.config import UDTConfig
|
from ubuntutools.config import UDTConfig
|
||||||
from ubuntutools.logger import Logger
|
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():
|
def main():
|
||||||
bug_re = re.compile(r"bug=(\d+)")
|
bug_re = re.compile(r"bug=(\d+)")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user