[Bug 1198546] New: post-build-checks removes debugsource when it should not