From: Zhang Qiang Date: Sun, 16 Sep 2012 06:02:32 +0000 (+0800) Subject: more check about specfile X-Git-Tag: 0.1~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ecdc50a62bc3528111b439ec8707f6512982b411;p=tools%2Fdepanneur.git more check about specfile Change-Id: I8f2aafc7fdf8976613af2d3d46cc1ba5cf62dba0 --- diff --git a/depanneur b/depanneur index e1201ba..5f579b6 100755 --- a/depanneur +++ b/depanneur @@ -372,8 +372,8 @@ sub prepare_git { my $prj = basename($base); my $pack = Build::Rpm::parse($config, $spec); - if (! exists $pack->{name}) { - debug("failed to parse spec file: $spec"); + if (! exists $pack->{name} || ! exists $pack->{version} || ! exists $pack->{release}) { + debug("failed to parse spec file: $spec, name,version,release fields must be present"); return; } my $pkg_name = $pack->{name};