+
+ # dpkg-gensymbols files
+ my $symbols=pkgfile($package, "symbols");
+ if (-e $symbols) {
+ # -I is used rather than using dpkg-gensymbols
+ # own search for symbols files, since that search
+ # is not 100% compatible with debhelper. (For example,
+ # this supports --ignore being used.)
+ doit("dpkg-gensymbols", "-p$package", "-I$symbols",
+ "-P$tmp", @{$dh{U_PARAMS}});
+ if (-s "$tmp/DEBIAN/symbols" == 0) {
+ doit("rm", "-f", "$tmp/DEBIAN/symbols");
+ }
+ }