Fix not export source option error
authory0169.zhang <y0169.zhang@samsung.com>
Fri, 15 Sep 2017 07:42:00 +0000 (15:42 +0800)
committery0169.zhang <y0169.zhang@samsung.com>
Fri, 15 Sep 2017 07:42:00 +0000 (15:42 +0800)
Change-Id: I24a612417486ce207849be28f73ad0a7c0a06ff6

depanneur

index f45d47ef0234c97b6039e71b49dd1a7bb6a533ee..35392879e652b5903872ea6d3f4b368fe6bf463f 100755 (executable)
--- a/depanneur
+++ b/depanneur
@@ -2381,7 +2381,17 @@ if ($style eq 'git') {
                     }
                     if ($r) {
                         info("skip export $name for accel...");
-                        push @packs, $pack;
+                        my $specs = $pack->{"filename"};
+                        my $new_p;
+                        $new_p->{"project_base_path"} = $pack->{"project_base_path"};
+                        $new_p->{"packaging_dir"} = $pack->{"packaging_dir"};
+                        $new_p->{"upstream_branch"} = $pack->{"upstream_branch"};
+                        $new_p->{"upstream_tag"} = $pack->{"upstream_tag"};
+                        my @spec_list = split(",", $specs);
+                        foreach my $spec (@spec_list) {
+                            $new_p->{"filename"} = $spec;
+                            push @packs, $new_p;
+                        }
                     } else {
                         info("package $name not support skip export source");
                        push @data_queue, $pack;