mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-20 20:09:11 +00:00
framework/workload: Fix resolve_packge_from_target
This currently raises an error undonditionally when self.package is set, fix the indentation so it only does that if it isn't installed on the target.
This commit is contained in:
parent
0cc8ebbf69
commit
a79fb83fd1
@ -485,7 +485,7 @@ class PackageHandler(object):
|
||||
if self.package:
|
||||
if not self.target.package_is_installed(self.package):
|
||||
msg = 'Package "{}" cannot be found on the host or device'
|
||||
raise WorkloadError(msg.format(self.package))
|
||||
raise WorkloadError(msg.format(self.package_name))
|
||||
else:
|
||||
installed_versions = []
|
||||
for package in self.owner.package_names:
|
||||
|
Loading…
x
Reference in New Issue
Block a user