Fix bug: build error when there are more than one git souce directories 32/248832/1
authorbiao716.wang <biao716.wang@samsung.com>
Wed, 2 Dec 2020 13:43:21 +0000 (22:43 +0900)
committerbiao716.wang <biao716.wang@samsung.com>
Wed, 2 Dec 2020 13:43:21 +0000 (22:43 +0900)
Change-Id: Ia94e6c3c451e5501a59e6e8ebdcc12644a2e544d
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
depanneur

index 3443232..17c2b4c 100755 (executable)
--- 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) {