my $run_configure = 0;
my $overwrite = 0;
my $MAX_THREADS = 1;
+my $extra_packs = "";
my @tobuild = ();
my @tofind = ();
"incremental" => \$incremental,
"no-configure" => \$run_configure,
"threads=s" => \$MAX_THREADS,
+ "extra-packs=s" => \$extra_packs,
);
if ( $help ) {
push @args, "--configdir $dist_configs";
push @args, "--arch $archpath";
push @args, "$srpm_filename";
+ if (! $extra_packs eq "") {
+ my $packs = join(' ', split(',', $extra_packs));
+ push @args, "--extra-packs=\"$packs\"";
+ }
# Rebuild the package.
info("*** building $name-$version-$release $arch $dist (worker: $thread) ***");