} catch (NoSuchAlgorithmException e) {
throw new PackagingException("Unable to compute the checksums for " + binaryPackage, e);
}
if (!changesFile.isValid()) {
throw new PackagingException("Changes file fields are invalid " + changesFile.invalidFields() +
". The following fields are mandatory: " + changesFile.getMandatoryFields() +
". Please check your pom.xml/build.xml and your control file.");
}
return changesFile;