t-diff-nogit ../extract/$p-${v%-*} .
t-clean-on-branch dgit/sid
t-refs-same-start
- t-refs-same-more \
+ t-refs-same \
refs/heads/dgit/sid \
refs/remotes/dgit/dgit/sid
t-refs-notexist dgit/unstable remotes/dgit/dgit/unstable
t_ref_val=''
}
-t-refs-same-more () {
+t-refs-same () {
local g
for g in $*; do
t-ref-same $g
t-pushed-good () {
local branch=$1
t-ref-dsc-dgit
- t-refs-same-more \
+ t-refs-same \
refs/heads/$branch \
`t-v-tag` \
refs/remotes/dgit/dgit/sid
refs/heads/dgit/unstable \
refs/remotes/dgit/dgit/unstable
(set -e; cd $tmp/git/$p.git
- t-refs-same-more \
+ t-refs-same \
refs/dgit/sid \
`t-v-tag`
t-refs-notexist \
git verify-tag `t-v-tag`
}
-t-ref-dsc-dgit () {
- local dsc=${p}_${v}.dsc
- local val=`perl -e '
+t-822-field () {
+ local file=$1
+ local field=$2
+ perl -e '
use Dpkg::Control::Hash;
my $h = new Dpkg::Control::Hash allow_pgp=>1;
- $h->parse(\*STDIN,"dsc");
- my $ref = $h->{"Dgit"},"\n";
- die unless $ref =~ m/^\w+\b/;
- print $ref,"\n";
- ' <$tmp/incoming/$dsc`
+ $h->parse(\*STDIN,"'"$file"'");
+ my $val = $h->{"'$field'"},"\n";
+ die "'"$file $field"'" unless defined $val;
+ print $val,"\n";
+ ' <$file
+}
+
+t-ref-dsc-dgit () {
+ local dsc=${p}_${v}.dsc
+ local val=`t-822-field $tmp/incoming/$dsc Dgit`
+ perl -e '$_=shift @ARGV; die "$dsc Dgit $_ ?" unless m/^\w+\b/;' "$val"
t-ref-same-val $dsc "$val"
}