from portage.output import bold, create_color_func, darkgreen, \
green, nocolor, red, turquoise, yellow
from portage.output import ConsoleStyleFile, StyleWriter
+from portage.util import writemsg_level
util.initialize_logger()
elif vcs == "git":
retval=os.system("git add "+" ".join(myautoadd))
if retval:
- print "!!! Exiting on vcs (shell) error code:",retval
+ writemsg_level("!!! Exiting on %s (shell) error code: %s\n" % \
+ (vcs, retval), level=logging.ERROR, noiselevel=-1)
sys.exit(retval)
if myunadded:
except OSError:
pass
if retval:
- print "!!! Exiting on cvs (shell) error code:",retval
+ writemsg_level("!!! Exiting on %s (shell) error code: %s\n" % \
+ (vcs, retval), level=logging.ERROR, noiselevel=-1)
sys.exit(retval)
# Setup the GPG commands
except OSError:
pass
if retval:
- print "!!! Exiting on cvs (shell) error code:",retval
+ writemsg_level("!!! Exiting on %s (shell) error code: %s\n" % \
+ (vcs, retval), level=logging.ERROR, noiselevel=-1)
sys.exit(retval)
manifest_commit_required = False
except OSError:
pass
if retval:
- print "!!! Exiting on cvs (shell) error code:",retval
+ writemsg_level("!!! Exiting on %s (shell) error code: %s\n" % \
+ (vcs, retval), level=logging.ERROR, noiselevel=-1)
sys.exit(retval)
print