[Collab-qa-commits] r1853 - collab-qa-tools/lib/collab-qa
Lucas Nussbaum
lucas at alioth.debian.org
Wed Dec 8 06:44:10 UTC 2010
Author: lucas
Date: 2010-12-08 06:44:04 +0000 (Wed, 08 Dec 2010)
New Revision: 1853
Modified:
collab-qa-tools/lib/collab-qa/log-parser-instest.rb
Log:
instest parser fixes
Modified: collab-qa-tools/lib/collab-qa/log-parser-instest.rb
===================================================================
--- collab-qa-tools/lib/collab-qa/log-parser-instest.rb 2010-12-07 20:52:58 UTC (rev 1852)
+++ collab-qa-tools/lib/collab-qa/log-parser-instest.rb 2010-12-08 06:44:04 UTC (rev 1853)
@@ -8,6 +8,12 @@
else
@reasons = []
end
+ if @data =~ /dpkg: error processing common-lisp-controller/
+ @reasons << 'clisp'
+ end
+ if @data =~ /insserv: Service udev has to be enabled to start service lvm2/
+ @reasons << 'udevlvm2'
+ end
if @data =~ /dbconfig-common/
@reasons << 'dbconfig'
end
@@ -47,6 +53,12 @@
g2 = lines.grep_index(/^-- /)[0]
@sum_ml = @extract = lines[0..g2-1]
@sum_1l = "installation fails"
+ elsif @reasons.include?('inst-aptitude')
+ g1 = @lines.grep_index(/^-- Installing the package with aptitude: FAILED$/)[0]
+ lines = @lines[g1+1..-1]
+ g2 = lines.grep_index(/^-- /)[0]
+ @sum_ml = @extract = lines[0..g2-1]
+ @sum_1l = "installation fails with aptitude"
elsif @reasons.include?('rm-pkg')
g1 = @lines.grep_index(/^-- Removing the package: FAILED$/)[0]
lines = @lines[g1+1..-1]
More information about the Collab-qa-commits
mailing list