diff options
authorJesse Keating <>2010-12-01 12:08:33 -0800
committerJesse Keating <>2010-12-01 12:08:33 -0800
commit69de8ecadf6d93bde3818c5973db871baac6ec2e (patch)
parent999d56be352e2b4b135c2d7681fdf9289562e3ee (diff)
Fix up the commit command
Looks like argparse doesn't like a % in help. Odd. Also fix a logic error for non-tty usage.
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ b/src/
index 2d7fff2..29c774d 100755
--- a/src/
+++ b/src/
@@ -949,7 +949,7 @@ packages will be built sequentially.
parser_commit.add_argument('-c', '--clog',
default = False,
action = 'store_true',
- help = 'Generate the commit message from the %Changelog section')
+ help = 'Generate the commit message from the Changelog section')
parser_commit.add_argument('-t', '--tag',
default = False,
action = 'store_true',
diff --git a/src/pyfedpkg/ b/src/pyfedpkg/
index 08ae1b9..8f202b8 100644
--- a/src/pyfedpkg/
+++ b/src/pyfedpkg/
@@ -487,7 +487,7 @@ def commit(path=None, message=None, file=None, files=[]):
# First lets see if we got a message or we're on a real tty:
if not sys.stdin.isatty():
- if not message or not file:
+ if not message and not file:
raise FedpkgError('Must have a commit message or be on a real tty.')
# construct the git command