2015-06-17 15:50:32 |
Barry Warsaw |
description |
For snappy we use a plugin to apply the upgrade. I.e. we set:
"""
[hooks]
apply: ubuntucoreupgrader.apply.ApplyUpgrade
"""
We also send progress data in the form of spinner json progress
data. In our system-image-snappy-cli fork we set what progress
into the config and query it later from the plugin to know if
it should send progress reporting or not. It would be nice if
s-i 3.0 could do the same.
I hope this bugreport is not too confused, if it is, please let me know.
It might be as simple as in main.py:
"""
config.progress += meter
""" |
For snappy we use a plugin to apply the upgrade. I.e. we set:
"""
[hooks]
apply: ubuntucoreupgrader.apply.ApplyUpgrade
"""
Because this plugin also wants to output progress as JSON data, it needs to know what --progress settings the user has chosen on the command line. This is currently not easily accessible.
The request is to make the --progress options available in the global config object, which would be easily accessible by the plugin. |
|