Commit 094bbc24 authored by Simon McVittie's avatar Simon McVittie

make-template: don't crash when unable to guess $install_to

Regression in 0b022b5b, v46.

Bug-Debian: #841164
parent 1293b444
game-data-packager (47) UNRELEASED; urgency=medium
* Enhancements and bug fixes:
- make-template: don't crash when unable to guess what $install_to
should have been. Regression in v46. (Closes: #841164)
-- Simon McVittie <smcv@debian.org> Sun, 30 Oct 2016 22:19:21 +0000
game-data-packager (46) experimental; urgency=medium
* Support for new languages and versions:
......
......@@ -551,7 +551,7 @@ class GameData(object):
logger.warning('unhandled data.tar entry type: %s: %s',
name, entry.type)
if self.plugin != 'scummvm_common':
if self.plugin != 'scummvm_common' and install_to is not None:
self.package['install_to'] = os.path.join('/',
install_to).replace('/usr/share/games/', '$assets/')
self.package['install'].sort()
......
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