Deprecate host_version #1509
This commit is contained in:
parent
f8ef93bd21
commit
63a5dcef05
@ -74,18 +74,6 @@ class ContentBundle(Bundle):
|
||||
|
||||
section = 'Library'
|
||||
|
||||
if cp.has_option(section, 'host_version'):
|
||||
version = cp.get(section, 'host_version')
|
||||
try:
|
||||
if int(version) != 1:
|
||||
raise MalformedBundleException(
|
||||
'Content bundle %s has unknown host_version '
|
||||
'number %s' % (self._path, version))
|
||||
except ValueError:
|
||||
raise MalformedBundleException(
|
||||
'Content bundle %s has invalid host_version number %s' %
|
||||
(self._path, version))
|
||||
|
||||
if cp.has_option(section, 'name'):
|
||||
self._name = cp.get(section, 'name')
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user