Skip to content

Commit

Permalink
Fixed manifest loading.
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Aug 13, 2006
1 parent bde9608 commit 66eac97
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions snowberry/sb/aodb.py
Expand Up @@ -465,15 +465,15 @@ def loadManifest(fileName):
identifier = paths.getBase(fileName)

if exists(identifier):
addon = get(identifier)
a = get(identifier)
else:
# Create a new addon.
addon = Addon(identifier, fileName)
addons[identifier] = addon
a = ao.Addon(identifier, fileName)
addons[identifier] = a

# The manifest contains metadata configuration.
try:
addon.parseConfiguration(file(fileName).read())
a.parseConfiguration(file(fileName).read())

except Exception, x:
logger.add(logger.HIGH, 'error-read-manifest', fileName, str(x))
Expand Down

0 comments on commit 66eac97

Please sign in to comment.