From 6c1451ba7f2503adfbd66618ce61b0c6dfea9a46 Mon Sep 17 00:00:00 2001 From: "biao716.wang" Date: Wed, 2 Dec 2020 22:43:21 +0900 Subject: [PATCH] Fix bug: build error when there are more than one git souce directories Change-Id: Ia94e6c3c451e5501a59e6e8ebdcc12644a2e544d Signed-off-by: biao716.wang --- depanneur | 2 ++ 1 file changed, 2 insertions(+) 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) { -- 2.34.1