[game-data-packager] 01/02: scummvmrc: accept broken rc files too
Alexandre Detiste
detiste-guest at moszumanska.debian.org
Sun Oct 18 06:48:45 UTC 2015
This is an automated email from the git hooks/post-receive script.
detiste-guest pushed a commit to branch master
in repository game-data-packager.
commit 94c17eee1721a9b3bee621c41d0146013833a659
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date: Sun Oct 18 08:30:30 2015 +0200
scummvmrc: accept broken rc files too
---
game_data_packager/games/residualvm_common.py | 2 +-
game_data_packager/games/scummvm_common.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/game_data_packager/games/residualvm_common.py b/game_data_packager/games/residualvm_common.py
index 76ee03c..33c5c36 100644
--- a/game_data_packager/games/residualvm_common.py
+++ b/game_data_packager/games/residualvm_common.py
@@ -58,7 +58,7 @@ class ResidualvmTask(PackagingTask):
if not os.path.isfile(rcfile):
return
- config = configparser.ConfigParser()
+ config = configparser.ConfigParser(strict=False)
config.read(rcfile, encoding='utf-8')
for section in config.sections():
if section.startswith(self.game.gameid):
diff --git a/game_data_packager/games/scummvm_common.py b/game_data_packager/games/scummvm_common.py
index 700a293..7b93706 100644
--- a/game_data_packager/games/scummvm_common.py
+++ b/game_data_packager/games/scummvm_common.py
@@ -75,7 +75,7 @@ class ScummvmTask(PackagingTask):
if not os.path.isfile(rcfile):
return
- config = configparser.ConfigParser()
+ config = configparser.ConfigParser(strict=False)
config.read(rcfile, encoding='utf-8')
for section in config.sections():
for gameid in gameids:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git
More information about the Pkg-games-commits
mailing list