summaryrefslogtreecommitdiffstats
path: root/bin/repoman
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-12-15 03:54:37 +0000
committerZac Medico <zmedico@gentoo.org>2007-12-15 03:54:37 +0000
commitc9bf2838d560ed21deb78fa4e95e2e39649b97eb (patch)
treefa00b78ad4cc49cd23f024abea31d2a98957bc9b /bin/repoman
parent71616dc38e1b7f24b1193951d72649cbb438cce9 (diff)
downloadportage-c9bf2838d560ed21deb78fa4e95e2e39649b97eb.tar.gz
portage-c9bf2838d560ed21deb78fa4e95e2e39649b97eb.tar.bz2
portage-c9bf2838d560ed21deb78fa4e95e2e39649b97eb.zip
Instead of all modes, only in commit mode save an extra copy of QA
output for display in $EDITOR. svn path=/main/trunk/; revision=8928
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 dcd586559..05ec4fd50 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -1681,7 +1681,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 options.mode == '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