Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make the document sha1 value optional - previous validation treated it

as required
  • Loading branch information...
commit e7f029abb7d59ee1d7707de710db7c1066b85920 1 parent c25c784
Gary O'Neall goneall authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/org/spdx/rdfparser/SPDXDocument.java
4 src/org/spdx/rdfparser/SPDXDocument.java
View
@@ -480,9 +480,7 @@ public void setLicenseInfoFromFiles(SPDXLicenseInfo[] licenseInfo) throws Invali
// checksum
try {
String checksum = this.getSha1();
- if (checksum == null || checksum.isEmpty()) {
- retval.add("Missing required package checksum");
- } else {
+ if (checksum != null && !checksum.isEmpty()) {
String verify = SpdxVerificationHelper.verifyChecksumString(checksum);
if (verify != null) {
retval.add("Package checksum error: "+verify);
Please sign in to comment.
Something went wrong with that request. Please try again.