1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-06 10:51:13 +01: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:
Brendan Jackman 2017-09-15 16:47:10 +01:00
parent 0cc8ebbf69
commit a79fb83fd1

View File

@ -485,7 +485,7 @@ class PackageHandler(object):
if self.package: if self.package:
if not self.target.package_is_installed(self.package): if not self.target.package_is_installed(self.package):
msg = 'Package "{}" cannot be found on the host or device' msg = 'Package "{}" cannot be found on the host or device'
raise WorkloadError(msg.format(self.package)) raise WorkloadError(msg.format(self.package_name))
else: else:
installed_versions = [] installed_versions = []
for package in self.owner.package_names: for package in self.owner.package_names: