$symfile->save("-");
} else {
unless (defined($output)) {
- $output = "$packagebuilddir/DEBIAN/symbols";
- mkdir("$packagebuilddir/DEBIAN") if not -e "$packagebuilddir/DEBIAN";
+ unless($symfile->is_empty()) {
+ $output = "$packagebuilddir/DEBIAN/symbols";
+ mkdir("$packagebuilddir/DEBIAN") if not -e "$packagebuilddir/DEBIAN";
+ }
+ }
+ if (defined($output)) {
+ print "Storing symbols in $output.\n" if $debug;
+ $symfile->save($output);
+ } else {
+ print "No symbol information to store.\n" if $debug;
}
- print "Storing symbols in $output.\n" if $debug;
- $symfile->save($output);
}
# Check if generated files differs from reference file