Add disable-debuginfo option which disable to generate debuginfo packages
authorJun Wang <junbill.wang@samsung.com>
Mon, 27 Nov 2017 03:04:49 +0000 (11:04 +0800)
committerJun Wang <junbill.wang@samsung.com>
Mon, 27 Nov 2017 03:05:19 +0000 (11:05 +0800)
Change-Id: I956c177bc61956069ffcbcb1f2d686ce366063c9

depanneur

index 790fd70..7a1923e 100755 (executable)
--- a/depanneur
+++ b/depanneur
@@ -182,6 +182,7 @@ my $vmdiskfilesystem = "";
 my $vminitrd = "";
 my $vmkernel = "";
 my $vmswapsize = "";
+my $disable_debuginfo = 0;#disable debuginfo when using build cmd
 
 GetOptions (
     "repository=s" => \@repos,
@@ -236,6 +237,7 @@ GetOptions (
     "vm-initrd=s" => \$vminitrd,
     "vm-kernel=s" => \$vmkernel,
     "vm-swap=s" => \$vmswapsize,
+    "disable-debuginfo" => \$disable_debuginfo,
     );
 
 if ( $help ) {
@@ -296,6 +298,9 @@ Available options:
     --debug
       Debug output.
 
+    --disable-debuginfo
+      Disable debug info package to be created
+
 ";
     exit(0);
 }
@@ -1952,7 +1957,7 @@ sub build_package {
         $redirect = "> /dev/null 2>&1";
     }
 
-    push @args, "--debug";
+    push @args, "--debug" if ($disable_debuginfo != 1);
     push @args, "--root $scratch";
     if ($noinit == 1 && -e "$scratch/not-ready") {
         error("build root is not ready , --noinit is not allowed");