Drop warn and note functions.
This commit is contained in:
parent
4d4c8d880b
commit
7359c07b96
2 changed files with 5 additions and 6 deletions
|
@ -21,10 +21,8 @@ import stat
|
|||
import sys
|
||||
|
||||
|
||||
DEFAULT_PYTHON = "python3"
|
||||
|
||||
|
||||
class DetailedFailure(Exception):
|
||||
|
||||
def __init__(self, retcode, argv, error):
|
||||
self.retcode = retcode
|
||||
self.argv = argv
|
||||
|
@ -45,12 +43,14 @@ def shebang_binary(p):
|
|||
|
||||
|
||||
class UpstreamRequirement(object):
|
||||
|
||||
def __init__(self, family, name):
|
||||
self.family = family
|
||||
self.name = name
|
||||
|
||||
|
||||
class UpstreamOutput(object):
|
||||
|
||||
def __init__(self, family, name):
|
||||
self.family = family
|
||||
self.name = name
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
import logging
|
||||
import os
|
||||
import sys
|
||||
from . import note, UpstreamPackage
|
||||
from .apt import UnidentifiedError
|
||||
from .buildsystem import NoBuildToolsFound, detect_buildsystems
|
||||
from .build import run_build
|
||||
|
@ -127,12 +126,12 @@ def main(): # noqa: C901
|
|||
return 1
|
||||
except MissingDependencies as e:
|
||||
for req in e.requirements:
|
||||
note("Missing dependency (%s:%s)" % (req.family, req.name))
|
||||
logging.info("Missing dependency (%s:%s)", (req.family, req.name))
|
||||
for resolver in [
|
||||
AptResolver.from_session(session),
|
||||
NativeResolver.from_session(session),
|
||||
]:
|
||||
note(" %s" % (resolver.explain([req]),))
|
||||
logging.info(" %s", resolver.explain([req]))
|
||||
return 2
|
||||
return 0
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue