Commit 9c148e1c authored by Łukasz Nowak's avatar Łukasz Nowak

Support software key.

parent 327b291f
...@@ -91,6 +91,17 @@ def updatePartitionList(computer, partition_list):\n ...@@ -91,6 +91,17 @@ def updatePartitionList(computer, partition_list):\n
partition.deleteContent([q.getId() for q in to_delete_list])\n partition.deleteContent([q.getId() for q in to_delete_list])\n
\n \n
def updateSoftwareList(computer, software_list):\n def updateSoftwareList(computer, software_list):\n
for software_dict in software_list:\n
status = software_dict[\'status\']\n
try:\n
if status == \'installed\':\n
computer.stopSoftwareReleaseInstallation(software_release_url=software_dict[\'software_release\'], comment=software_dict[\'log\'])\n
elif status == \'uninstalled\':\n
computer.cleanupSoftwareReleaseInstallation(software_release_url=software_dict[\'software_release\'], comment=software_dict[\'log\'])\n
elif status == \'error\':\n
computer.reportSoftwareReleaseInstallationError(software_release_url=software_dict[\'software_release\'], comment=software_dict[\'log\'])\n
except ValueError:\n
# BBB: Underlying code is state based, does not support multiple information\n
pass\n pass\n
\n \n
if \'partition\' in computer_json:\n if \'partition\' in computer_json:\n
......
729 730
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment