diff options
author | Aleksey Lim <alsroot@sugarlabs.org> | 2014-01-04 14:08:25 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@sugarlabs.org> | 2014-01-04 14:08:25 (GMT) |
commit | 5955e4a46d48dd6099e56e17b7fa545be46de540 (patch) | |
tree | 44ae6e2bf357d7d63886b16d0571ba60155f31be /sugar_network/node/routes.py | |
parent | d58594abe1b9b1f3faf041c418c6d1a57b68ccc7 (diff) |
Populate Implementation.notes by CHANGELOG content from newly uploaded bundles
Diffstat (limited to 'sugar_network/node/routes.py')
-rw-r--r-- | sugar_network/node/routes.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sugar_network/node/routes.py b/sugar_network/node/routes.py index 80f8893..ebb46a8 100644 --- a/sugar_network/node/routes.py +++ b/sugar_network/node/routes.py @@ -511,7 +511,12 @@ def load_bundle(volume, request, bundle_path): unpack_size = 0 with bundle: + changelog = join(bundle.rootdir, 'CHANGELOG') for arcname in bundle.get_names(): + if changelog and arcname == changelog: + with bundle.extractfile(changelog) as f: + impl['notes'] = f.read() + changelog = None unpack_size += bundle.getmember(arcname).size spec = bundle.get_spec() context_meta = _load_context_metadata(bundle, spec) |