X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=dgit;h=51df7c30defe743bd435f8318a718bf4b7e36229;hb=8ddd53c0140e1e2649ab2233c8fdbd42fbfa734d;hp=9bdd2074b520d33ce14234d4e50e53971d4ebb27;hpb=c225785cc31e19f449fcfa903442b3ad2987a4d5;p=dgit.git diff --git a/dgit b/dgit index 9bdd2074..51df7c30 100755 --- a/dgit +++ b/dgit @@ -147,6 +147,11 @@ sub dscfn ($) { return srcfn($vsn,".dsc"); } +sub changespat ($;$) { + my ($vsn, $arch) = @_; + return "${package}_".(stripepoch $vsn)."_".($arch//'*').".changes"; +} + our $us = 'dgit'; initdebug(''); @@ -1997,12 +2002,11 @@ END } my $head = git_rev_parse('HEAD'); if (!$changesfile) { - my $multi = "$buildproductsdir/". - "${package}_".(stripepoch $cversion)."_multi.changes"; + my $multi = "$buildproductsdir/".changespat $cversion,'multi'; if (stat_exists "$multi") { $changesfile = $multi; } else { - my $pat = "${package}_".(stripepoch $cversion)."_*.changes"; + my $pat = changespat $cversion; my @cs = glob "$buildproductsdir/$pat"; fail "failed to find unique changes file". " (looked for $pat in $buildproductsdir, or $multi);". @@ -2083,7 +2087,7 @@ END sign_changes $changesfile; } - supplementary_message(<<'END'); + supplementary_message(<