From: Zhang Qiang Date: Thu, 30 Aug 2012 09:34:15 +0000 (+0800) Subject: Give error and exit if no packages found X-Git-Tag: 0.1~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=95b189df65bbeca73bf716ac78e736c9e4186afc;p=tools%2Fdepanneur.git Give error and exit if no packages found Change-Id: I084324a5b202dd6688cf932c121edcfacdbece92 --- diff --git a/depanneur b/depanneur index e063811..e284157 100755 --- a/depanneur +++ b/depanneur @@ -788,6 +788,9 @@ if ($buildall || @packs == 0 ) { if (@original_specs > 1 && ! $commit eq ""){ error("--commit option can't be specified with multiple packages"); } + if (@original_specs == 0) { + error("No source package found at $path"); + } } elsif ($style eq "obs") { File::Find::find({wanted => \&obs_wanted}, $package_path ); }