summaryrefslogtreecommitdiffstats
path: root/bin/repoman
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-12-15 04:04:38 +0000
committerZac Medico <zmedico@gentoo.org>2007-12-15 04:04:38 +0000
commit175085b0a5de26e0566dcd5c057b96e36d860ff3 (patch)
treee804362b00d30365a5646310ac4e45a3aa625d7b /bin/repoman
parent76b4466b91e7d1eec138ba6881b8cf32840d426e (diff)
downloadportage-175085b0a5de26e0566dcd5c057b96e36d860ff3.tar.gz
portage-175085b0a5de26e0566dcd5c057b96e36d860ff3.tar.bz2
portage-175085b0a5de26e0566dcd5c057b96e36d860ff3.zip
Instead of all modes, only in commit mode save an extra copy of QA
output for display in $EDITOR. (trunk r8928) svn path=/main/branches/2.1.2/; revision=8929
Diffstat (limited to 'bin/repoman')
-rwxr-xr-xbin/repoman4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/repoman b/bin/repoman
index 05ccecf19..a8ed9b873 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -1855,7 +1855,9 @@ dofull=0
# once the editor has taken over the screen.
qa_output = StringIO.StringIO()
style_file = ConsoleStyleFile(sys.stdout)
-style_file.write_listener = qa_output
+if mymode == 'commit' and \
+ (not commitmessage or not commitmessage.strip()):
+ style_file.write_listener = qa_output
console_writer = StyleWriter(file=style_file, maxcol=9999)
console_writer.style_listener = style_file.new_styles