Skip to content

Commit 16b49e5

Browse files
committed
Fix updating of PyLNP.json (fixes #67)
Bump version number to 0.9.5a
1 parent f5f80d6 commit 16b49e5

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

core/hacks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ def toggle_hack(name):
8181
The name of the hack to toggle.
8282
"""
8383
get_hack(name)['enabled'] = not get_hack(name)['enabled']
84+
lnp.config.save_data()
8485
rebuild_hacks()
8586

8687
def rebuild_hacks():

core/lnp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
from .json_config import JSONConfiguration
1111

12-
VERSION = '0.9.5'
12+
VERSION = '0.9.5a'
1313

1414
lnp = None
1515
class PyLNP(object):

core/update.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ def simple_dffd_config():
119119
"""Reduces the configuration required by maintainers using DFFD.
120120
Values are generated and saved from known URLs and the 'dffdID' field."""
121121
c = lnp.config
122-
u = lnp.config.get_dict('updates')
122+
import copy
123+
u = copy.deepcopy(lnp.config.get_dict('updates'))
123124
download_patt = 'http://dffd.bay12games.com/file.php?id='
124125
check_patt = 'http://dffd.bay12games.com/file_version.php?id='
125126
direct = 'http://dffd.bay12games.com/download.php?id={0}&f=new_pack.zip'

0 commit comments

Comments
 (0)