summaryrefslogtreecommitdiffstats
path: root/mgagnome
diff options
context:
space:
mode:
authorOlav Vitters <ovitters@mageia.org>2012-03-19 15:49:20 +0000
committerOlav Vitters <ovitters@mageia.org>2012-03-19 15:49:20 +0000
commitc15cc3d6c62b3e33af2c6dd58552fbcc63b2d8c4 (patch)
tree2a9d2077517e7dc35190e824625b465ee37ef280 /mgagnome
parent3b946a37bd37516dc999c27e9927afa6ff41a00b (diff)
downloadmgagnome-c15cc3d6c62b3e33af2c6dd58552fbcc63b2d8c4.tar
mgagnome-c15cc3d6c62b3e33af2c6dd58552fbcc63b2d8c4.tar.gz
mgagnome-c15cc3d6c62b3e33af2c6dd58552fbcc63b2d8c4.tar.bz2
mgagnome-c15cc3d6c62b3e33af2c6dd58552fbcc63b2d8c4.tar.xz
mgagnome-c15cc3d6c62b3e33af2c6dd58552fbcc63b2d8c4.zip
cleaner youri error messages
Diffstat (limited to 'mgagnome')
-rwxr-xr-xmgagnome2
1 files changed, 2 insertions, 0 deletions
diff --git a/mgagnome b/mgagnome
index 3a16d02..1fb711c 100755
--- a/mgagnome
+++ b/mgagnome
@@ -700,6 +700,8 @@ def cmd_parse_ftp_release_list(options, parser):
lastline = contents.read().rstrip().splitlines()[-1]
# Remove things like "ERROR: " and so on from the last line
lastline = re.sub(r'^(?:[^ :]+:\s+)+', '', lastline)
+ # Remove things like " - " (youri output from mgarepo submit)
+ lastline = re.sub(r'^\s+-\s+', '', lastline)
subjecterror = " (ERROR: %s)" % lastline if lastline else " (ERROR)"
else:
subjecterror = ""