From: Markus Lehtonen Date: Mon, 29 Sep 2014 09:41:05 +0000 (+0300) Subject: Support --fallback-to-native option of gbs X-Git-Tag: 0.14~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=644f4192950c52152a1dd4c1058a70c5b79e58cb;p=tools%2Fdepanneur.git Support --fallback-to-native option of gbs Change-Id: I2d350df091fdbb7572285c2ffccd99173abf4a2a Signed-off-by: Markus Lehtonen --- diff --git a/depanneur b/depanneur index 9250c8c..eff05af 100755 --- a/depanneur +++ b/depanneur @@ -86,6 +86,7 @@ my $includeall = 0; # build all content of including uncommitted and # untracked files my $upstream_branch = ""; # upstream branch name my $upstream_tag = ""; # upstream tag name used for generate tar ball +my $fallback_to_native = ""; # fallback to native packaging mode if export fails my $squash_patches_until = ""; # Commit_ID used for generate one patch my $no_patch_export = 0; # don't generate patches if it's 1 my $packaging_dir = "packaging";# packaging dir @@ -173,6 +174,7 @@ GetOptions ( "include-all" => \$includeall, "upstream-branch=s" => \$upstream_branch, "upstream-tag=s" => \$upstream_tag, + "fallback-to-native" => \$fallback_to_native, "squash-patches-until=s" => \$squash_patches_until, "no-patch-export" => \$no_patch_export, "packaging-dir=s" => \$packaging_dir, @@ -629,6 +631,9 @@ sub gbs_export { if (! $upstream_tag eq "") { push @args, "--upstream-tag=$upstream_tag"; } + if ($fallback_to_native == 1) { + push @args, "--fallback-to-native"; + } if (! $squash_patches_until eq "") { push @args, "--squash-patches-until=$squash_patches_until"; }