Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Bugfixes:
* dgit import-dsc: Do not crash with undefined $isuite. Closes:#850781.
Bugfixes:
* dgit import-dsc: Do not crash with undefined $isuite. Closes:#850781.
+ * dgit build: Do not sometimes crash with undefined $isuite.
* dgit: Do not nedlessly re-fetch the rewrite map.
* dgit: After downloading .debian.* files, save them in `..', too
(ie do this not just for .origs).
* dgit: Do not nedlessly re-fetch the rewrite map.
* dgit: After downloading .debian.* files, save them in `..', too
(ie do this not just for .origs).
sub build_prep_early () {
our $build_prep_early_done //= 0;
return if $build_prep_early_done++;
sub build_prep_early () {
our $build_prep_early_done //= 0;
return if $build_prep_early_done++;
badusage "-p is not allowed when building" if defined $package;
my $clogp = parsechangelog();
$isuite = getfield $clogp, 'Distribution';
$package = getfield $clogp, 'Source';
$version = getfield $clogp, 'Version';
badusage "-p is not allowed when building" if defined $package;
my $clogp = parsechangelog();
$isuite = getfield $clogp, 'Distribution';
$package = getfield $clogp, 'Source';
$version = getfield $clogp, 'Version';