|
@@ -71,6 +71,10 @@ sub usage {
|
|
|
-j[<number>] specify jobs to run simultaneously (passed to <rules>).
|
|
-j[<number>] specify jobs to run simultaneously (passed to <rules>).
|
|
|
-r<gain-root-command>
|
|
-r<gain-root-command>
|
|
|
command to gain root privileges (default is fakeroot).
|
|
command to gain root privileges (default is fakeroot).
|
|
|
|
|
+ --check-command=<check-command>
|
|
|
|
|
+ command to check the .changes file (no default).
|
|
|
|
|
+ --check-option=<opt>
|
|
|
|
|
+ pass <opt> to <check-command>.
|
|
|
-p<sign-command>
|
|
-p<sign-command>
|
|
|
command to sign .dsc and/or .changes files
|
|
command to sign .dsc and/or .changes files
|
|
|
(default is gpg2 or gpg).
|
|
(default is gpg2 or gpg).
|
|
@@ -122,6 +126,8 @@ my $parallel;
|
|
|
my $checkbuilddep = 1;
|
|
my $checkbuilddep = 1;
|
|
|
my @checkbuilddep_opts;
|
|
my @checkbuilddep_opts;
|
|
|
my @source_opts;
|
|
my @source_opts;
|
|
|
|
|
+my $check_command = $ENV{DEB_CHECK_COMMAND};
|
|
|
|
|
+my @check_opts;
|
|
|
my $signpause;
|
|
my $signpause;
|
|
|
my $signkey = defined $ENV{DEB_SIGN_KEYID} ? $ENV{DEB_SIGN_KEYID} : undef;
|
|
my $signkey = defined $ENV{DEB_SIGN_KEYID} ? $ENV{DEB_SIGN_KEYID} : undef;
|
|
|
my $signforce = 0;
|
|
my $signforce = 0;
|
|
@@ -188,6 +194,10 @@ while (@ARGV) {
|
|
|
$parallel = $1 || '';
|
|
$parallel = $1 || '';
|
|
|
} elsif (/^-r(.*)$/) {
|
|
} elsif (/^-r(.*)$/) {
|
|
|
@rootcommand = split /\s+/, $1;
|
|
@rootcommand = split /\s+/, $1;
|
|
|
|
|
+ } elsif (/^--check-command=(.*)$/) {
|
|
|
|
|
+ $check_command = $1;
|
|
|
|
|
+ } elsif (/^--check-option=(.*)$/) {
|
|
|
|
|
+ push @check_opts, $1;
|
|
|
} elsif (/^-p(.*)$/) {
|
|
} elsif (/^-p(.*)$/) {
|
|
|
$signcommand = $1;
|
|
$signcommand = $1;
|
|
|
} elsif (/^-k(.*)$/) {
|
|
} elsif (/^-k(.*)$/) {
|
|
@@ -299,6 +309,10 @@ if ($< == 0) {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+if ($check_command and not find_command($check_command)) {
|
|
|
|
|
+ error(_g("check-commmand '%s' not found"), $check_command);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
if (!defined $signcommand &&
|
|
if (!defined $signcommand &&
|
|
|
(($ENV{GNUPGHOME} && -e $ENV{GNUPGHOME}) ||
|
|
(($ENV{GNUPGHOME} && -e $ENV{GNUPGHOME}) ||
|
|
|
($ENV{HOME} && -e "$ENV{HOME}/.gnupg"))) {
|
|
($ENV{HOME} && -e "$ENV{HOME}/.gnupg"))) {
|
|
@@ -497,6 +511,10 @@ chdir($dir) or syserr("chdir $dir");
|
|
|
|
|
|
|
|
printf "$Dpkg::PROGNAME: %s\n", describe_build($files);
|
|
printf "$Dpkg::PROGNAME: %s\n", describe_build($files);
|
|
|
|
|
|
|
|
|
|
+if ($check_command) {
|
|
|
|
|
+ withecho($check_command, @check_opts, $chg);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
if ($signpause && ($signchanges || $signsource)) {
|
|
if ($signpause && ($signchanges || $signsource)) {
|
|
|
print _g("Press the return key to start signing process\n");
|
|
print _g("Press the return key to start signing process\n");
|
|
|
getc();
|
|
getc();
|