my $vminitrd = "";
my $vmkernel = "";
my $vmswapsize = "";
+my $disable_debuginfo = 0;#disable debuginfo when using build cmd
GetOptions (
"repository=s" => \@repos,
"vm-initrd=s" => \$vminitrd,
"vm-kernel=s" => \$vmkernel,
"vm-swap=s" => \$vmswapsize,
+ "disable-debuginfo" => \$disable_debuginfo,
);
if ( $help ) {
--debug
Debug output.
+ --disable-debuginfo
+ Disable debug info package to be created
+
";
exit(0);
}
$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");