} elsif ($d & (D_PAT_ADD|D_PAT_OTH)) {
return $unknown->("edits debian/patches");
} elsif ($d == D_DEB) {
- check if there were any deb before, if not this is
- a packaging introduction (ie breakwater root)
- return $classify->(qw(Packaging));
+ my ($ty,$dummy) = git_cat_file "$ph[0]:debian";
+ if ($ty eq 'tree') {
+ return $classify->(qw(Packaging));
+ } elsif ($ty eq 'missing') {
+ return $classify->(qw(BreakwaterStart));
+ } else {
+ return $unknown->("parent's debian is not a directory");
+ }
} elsif ($d == D_UPS) {
return $classify->(qw(Upstream));
} elsif ($d == (D_DEB|D_UPS)) {
push @deb_cl, $cl;
$cur = $p0;
next;
+ } elsif ($ty eq 'Packaging') {
+ push @deb_cl, $cl;
+ $cur = $p0;
+ next;
} elsif ($ty eq 'Upstream') {
push @ups_cl, $cl;
$cur = $p0;