Mailinglist Archive: opensuse-buildservice (260 mails)

< Previous Next >
Re: [opensuse-buildservice] What does "broken: file parse error" mean?
  • From: Michal Čihař <michal@xxxxxxxxx>
  • Date: Tue, 8 Dec 2009 16:30:26 +0100
  • Message-id: <20091208163026.4af041af@xxxxxxxxxxxxxxxxx>
Hi

Dne Tue, 8 Dec 2009 16:23:19 +0100
Michal Čihař <michal@xxxxxxxxx> napsal(a):

I just submitted new upstream version of Wammu to my home project[1] and
all I get from build service is "broken: file parse error". Can
somebody give me any hint where to look for problem and how to prevent
it?

Okay after looking at build service sources, I found out that this
error happens when it is unable to parse name from spec file. Shouldn't
it give some more reasonable error so that it can be debugged without
looking into the sources? How about attached patch?

--
Michal Čihař | http://cihar.com | http://blog.cihar.com
From f1f6c5a65b1c7e70fb8cfd7a640e8dec2ee697e9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= <mcihar@xxxxxxxxxx>
Date: Tue, 8 Dec 2009 16:28:40 +0100
Subject: [PATCH] Better error message.

Try to be a bit specific when reporting error to give at least some hint
to user.
---
src/backend/bs_srcserver | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/backend/bs_srcserver b/src/backend/bs_srcserver
index 7e260f4..24b4adb 100755
--- a/src/backend/bs_srcserver
+++ b/src/backend/bs_srcserver
@@ -1435,7 +1435,7 @@ sub getprojpack {
$rinfo->{$_} = $d->{$_} if exists $d->{$_};
}
} else {
- $rinfo->{'error'} = 'file parse error';
+ $rinfo->{'error'} = 'can not parse package name from spec file';
}
}
$pinfo->{'info'} = \@dinfo if @dinfo;
--
1.6.5.4

< Previous Next >
Follow Ups
References