From: biao716.wang Date: Wed, 2 Dec 2020 13:43:21 +0000 (+0900) Subject: Fix bug: build error when there are more than one git souce directories X-Git-Tag: accepted/tizen/devbase/tools/20201204.090119~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F32%2F248832%2F1;p=tools%2Fdepanneur.git Fix bug: build error when there are more than one git souce directories Change-Id: Ia94e6c3c451e5501a59e6e8ebdcc12644a2e544d Signed-off-by: biao716.wang --- diff --git a/depanneur b/depanneur index 3443232..17c2b4c 100755 --- a/depanneur +++ b/depanneur @@ -729,6 +729,8 @@ sub fill_packs_from_git { #$pattern = "$base/$l_packaging_dir/$arg_spec" if $arg_spec ne ""; #my @spec_list = glob($pattern); my $f_path="$base/$l_packaging_dir"; + #need to clear spec_lists before calling File::Find::find. + @spec_lists = (); File::Find::find({wanted => \&spec_wanted},$f_path); my $specs = ""; foreach my $spec (@spec_lists) {