diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ccdb054..ce96f4db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). +## [0.4.2] +### Fixes: +- [Snaps read index error](https://github.com/vinifmor/fpakman/issues/30) + ## [0.4.1] - 2019-07-25 ### Improvements - retrieving some Snaps data (icon, description and confinement) through Ubuntu API instead of Snap Store diff --git a/fpakman/__init__.py b/fpakman/__init__.py index d3fc6f28..3d956891 100644 --- a/fpakman/__init__.py +++ b/fpakman/__init__.py @@ -1,4 +1,4 @@ -__version__ = '0.4.1' +__version__ = '0.4.2' __app_name__ = 'fpakman' import os diff --git a/fpakman/core/snap/snap.py b/fpakman/core/snap/snap.py index bc8520fa..5b0eb7d1 100644 --- a/fpakman/core/snap/snap.py +++ b/fpakman/core/snap/snap.py @@ -39,8 +39,8 @@ def app_str_to_json(app: str) -> dict: 'version': app_data[1], 'rev': app_data[2], 'tracking': app_data[3], - 'publisher': app_data[4], - 'notes': app_data[5] + 'publisher': app_data[4] if len(app_data) >= 5 else None, + 'notes': app_data[5] if len(app_data) >= 6 else None } app_json.update(get_info(app_json['name'], ('summary', 'type', 'description')))