From: W. Trevor King Date: Sun, 19 Jul 2009 19:26:48 +0000 (-0400) Subject: Merged "be commit --allow-empty from be.wtk-rr" X-Git-Tag: 1.0.0~62^2~46^2~23 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2f2841356a80294b601f67e6676266d88b3ab971;p=be.git Merged "be commit --allow-empty from be.wtk-rr" --- 2f2841356a80294b601f67e6676266d88b3ab971 diff --cc libbe/cmdutil.py index 8499633,853a75a..548c255 --- a/libbe/cmdutil.py +++ b/libbe/cmdutil.py @@@ -70,12 -70,13 +70,14 @@@ def get_command(command_name) return cmd -def execute(cmd, args): +def execute(cmd, args, manipulate_encodings=True): enc = encoding.get_encoding() cmd = get_command(cmd) - cmd.execute([a.decode(enc) for a in args], - manipulate_encodings=manipulate_encodings) - return 0 - ret = cmd.execute([a.decode(enc) for a in args]) ++ ret = cmd.execute([a.decode(enc) for a in args], ++ manipulate_encodings=manipulate_encodings) + if ret == None: + ret = 0 + return ret def help(cmd=None, parser=None): if cmd != None: