Support --fallback-to-native option of gbs
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Mon, 29 Sep 2014 09:41:05 +0000 (12:41 +0300)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Mon, 29 Sep 2014 09:41:05 +0000 (12:41 +0300)
Change-Id: I2d350df091fdbb7572285c2ffccd99173abf4a2a
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
depanneur

index 9250c8c..eff05af 100755 (executable)
--- 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";
     }