Skip to content

Commit

Permalink
Merge pull request #1 from zsmartsystems/fix-firmware-properties
Browse files Browse the repository at this point in the history
Ensure all properties are handled in firmware
  • Loading branch information
cdjackson authored Apr 4, 2020
2 parents 2a2cbee + 7207f72 commit 721039f
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,20 @@ private void loadDirectory(String filename) {

FirmwareBuilder builder = getFirmwareBuilder(directoryEntry);

if (directoryEntry.getModel() != null) {
builder.withModelRestricted(true);
builder.withModel(directoryEntry.getModel());
}
if (directoryEntry.getVendor() != null) {
builder.withVendor(directoryEntry.getVendor());
}
if (directoryEntry.getHash() != null) {
builder.withMd5Hash(directoryEntry.getHash());
}
if (directoryEntry.getDescription() != null) {
builder.withDescription(directoryEntry.getDescription());
}

directoryEntry.setProviderFilename(directoryFile.getName());
directoryEntry.setFilesize(filenames.get(directoryEntry.getFilename()));
directoryUpdates.put(builder.build(), directoryEntry);
Expand Down

0 comments on commit 721039f

Please sign in to comment.