Skip to content

Commit

Permalink
Patched bug when calling installed software
Browse files Browse the repository at this point in the history
  • Loading branch information
Fulgurance committed Jul 8, 2024
1 parent 1e7c9e4 commit f2a553d
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions ISM/CommandLine.cr
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,16 @@ module ISM
end

def loadInstalledSoftware(port : String, name : String, version : String) : ISM::SoftwareInformation
return ISM::SoftwareInformation.loadConfiguration( @settings.rootPath +
ISM::Default::Path::InstalledSoftwaresDirectory +
port + "/" +
name + "/" +
version + "/" +
ISM::Default::Filename::Information)
begin
return ISM::SoftwareInformation.loadConfiguration( @settings.rootPath +
ISM::Default::Path::InstalledSoftwaresDirectory +
port + "/" +
name + "/" +
version + "/" +
ISM::Default::Filename::Information)
rescue
return ISM::SoftwareInformation.new
end
end

def loadInstalledSoftwareDatabase
Expand Down

0 comments on commit f2a553d

Please sign in to comment.