Commit 3b813063 authored by Simon McVittie's avatar Simon McVittie

WantedFile.provides_files: initialize to empty set, not None

Otherwise, iterating over them can lead to this error:

Traceback (most recent call last):
  File "tools/", line 26, in <module>
  File "game_data_packager/", line 710, in load_file_data
    for provided in f.provides_files:
TypeError: 'NoneType' object is not iterable

(cherry picked from commit 61bd889a)
parent fdda88db
......@@ -20,6 +20,8 @@ game-data-packager (49.1) UNRELEASED; urgency=medium
(Closes: #862432) [smcv]
- Remove metadata pointing to the DotEmu online store, which has
now closed [adetiste]
- Fix a potential crash during data loading by initializing
WantedFile.provides_files correctly [smcv]
* Internal changes:
- debian/ Update [smcv]
- debian/.gitignore: Update for game-data-packager-runtime [smcv]
......@@ -180,7 +180,7 @@ class WantedFile(HashedFile):
self.license = False
self._look_for = None
self._provides = set()
self.provides_files = None
self.provides_files = set()
self._size = None
self.unpack = None
self.unsuitable = None
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