Use logging.
This commit is contained in:
parent
95f5bc2a4c
commit
7d996d007b
2 changed files with 2 additions and 10 deletions
|
@ -42,11 +42,3 @@ def shebang_binary(p):
|
||||||
if args[0] in (b"/usr/bin/env", b"env"):
|
if args[0] in (b"/usr/bin/env", b"env"):
|
||||||
return os.path.basename(args[1].decode()).strip()
|
return os.path.basename(args[1].decode()).strip()
|
||||||
return os.path.basename(args[0].decode()).strip()
|
return os.path.basename(args[0].decode()).strip()
|
||||||
|
|
||||||
|
|
||||||
def note(m):
|
|
||||||
sys.stdout.write("%s\n" % m)
|
|
||||||
|
|
||||||
|
|
||||||
def warning(m):
|
|
||||||
sys.stderr.write("WARNING: %s\n" % m)
|
|
||||||
|
|
|
@ -15,9 +15,9 @@
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
|
import logging
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
from . import note
|
|
||||||
from .buildsystem import NoBuildToolsFound
|
from .buildsystem import NoBuildToolsFound
|
||||||
from .build import run_build
|
from .build import run_build
|
||||||
from .clean import run_clean
|
from .clean import run_clean
|
||||||
|
@ -65,7 +65,7 @@ def main():
|
||||||
if args.subcommand == "test":
|
if args.subcommand == "test":
|
||||||
run_test(session)
|
run_test(session)
|
||||||
except NoBuildToolsFound:
|
except NoBuildToolsFound:
|
||||||
note("No build tools found.")
|
logging.info("No build tools found.")
|
||||||
return 1
|
return 1
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue