Files
mycroft-core/fix-skill-settings-hash.patch
Antonio Larrosa 789aa62dd9 Accepting request 648785 from home:alarrosa:branches:multimedia:voice-assistant
- Update to 18.8.5:
  * No information from upstream yet. It'll be published at:
    https://github.com/MycroftAI/mycroft-core/releases/tag/release%2Fv18.8.5

- Added buildrequires for python3-ddg3 and python3-ifaddr

- Update to 18.8.4:
  * This was a rather quiet release but it introduces a mechanic to sync
    installed skills with the skill store. This makes way for bigger changes
    server side creating a better user experience.
  * Report load errors in skill tester . The skill tester now has the ability
    to report the error encountered when skills fail to load.
  * New tests for the dialog renderer module.
  * Api update Upload skills manifest . Add support for uploading skill
    manifest listing installed skills and their status. This makes way for
    implementing better installation possibilities on the Marketplace.
  * Bugfixes
    + Fix using CPS_play() without the common play framework.
    + Fix setup script on Fedora and add support for Red Hat Enterprise Linux
  * See more changes at
    https://github.com/MycroftAI/mycroft-core/releases/tag/release/v18.8.4
- Update to 18.8.3:
  * The big news in this issue is adding the CommonPlaySkill, a subclass of
    the MycroftSkill adding functionality for negotiating which skill should
    handle a playback call. This will still need a couple of skill updates
    to take advantage of the system but it should be running within a day or two.
  * Common playback skill
  * Fallback TTS . If a remote TTS such as Mimic 2 or googleTTS is used and
    the network connection goes down the tts will fallback to the local
    version of Mimic.

OBS-URL: https://build.opensuse.org/request/show/648785
OBS-URL: https://build.opensuse.org/package/show/multimedia:voice-assistant/mycroft-core?expand=0&rev=9
2018-11-13 20:20:12 +00:00

33 lines
1.6 KiB
Diff

Index: mycroft-core-release-v18.2.11/mycroft/skills/settings.py
===================================================================
--- mycroft-core-release-v18.2.11.orig/mycroft/skills/settings.py
+++ mycroft-core-release-v18.2.11/mycroft/skills/settings.py
@@ -105,6 +105,14 @@ class SkillSettings(dict):
if isfile(self._meta_path):
self._poll_skill_settings()
+ def __eq__(self, other):
+ return self.name == other.name and \
+ self._settings_path == other._settings_path and self._meta_path == other._meta_path and \
+ self.loaded_hash == other.loaded_hash
+
+ def __hash__(self):
+ return hash((self.name, self._settings_path, self._meta_path, self.loaded_hash))
+
def run_poll(self, _=None):
"""Immediately poll the web for new skill settings"""
if self._poll_timer:
Index: mycroft-core-release-v18.2.11/mycroft/messagebus/client/ws.py
===================================================================
--- mycroft-core-release-v18.2.11.orig/mycroft/messagebus/client/ws.py
+++ mycroft-core-release-v18.2.11/mycroft/messagebus/client/ws.py
@@ -158,7 +158,7 @@ class WebsocketClient(object):
else:
LOG.debug("Not able to find '"+str(event_name)+"'")
self.emitter.remove_listener(event_name, func)
- except ValueError as e:
+ except (ValueError, KeyError) as e:
LOG.warning('Failed to remove event {}: {}'.format(event_name,
str(func)))
for line in traceback.format_stack():