Commit 8afca337 authored by Simon McVittie's avatar Simon McVittie

Pass the data dict to the Package constructor

It isn't actually used for anything yet.
parent 5266e6ef
......@@ -195,7 +195,7 @@ class GameData(object):
if 'DISABLED' in data:
continue
package = self.construct_package(binary)
package = self.construct_package(binary, data)
self.packages[binary] = package
self._populate_package(package, data)
......@@ -969,8 +969,8 @@ class GameData(object):
self.load_file_data()
return PackagingTask(self, **kwargs)
def construct_package(self, binary):
return Package(binary)
def construct_package(self, binary, data):
return Package(binary, data)
def gog_download_name(self, package):
if package.gog == False:
......
......@@ -402,7 +402,7 @@ class FileGroup:
return ret
class Package(object):
def __init__(self, name):
def __init__(self, name, data):
# The name of the binary package
self.name = name
......
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