|
|
@ -58,11 +58,11 @@ def parse_manifest(pkg):
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
dependencies = latest_manifest['dependencies']
|
|
|
|
dependencies = latest_manifest['dependencies']
|
|
|
|
except KeyError:
|
|
|
|
except KeyError:
|
|
|
|
dependencies = json.loads('{}')
|
|
|
|
dependencies = {}
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
scripts = latest_manifest['scripts']
|
|
|
|
scripts = latest_manifest['scripts']
|
|
|
|
except KeyError:
|
|
|
|
except KeyError:
|
|
|
|
scripts = json.loads('{}')
|
|
|
|
scripts = {}
|
|
|
|
name = latest_manifest['name']
|
|
|
|
name = latest_manifest['name']
|
|
|
|
|
|
|
|
|
|
|
|
return Manifest(name, latest_ver, dependencies, scripts)
|
|
|
|
return Manifest(name, latest_ver, dependencies, scripts)
|
|
|
@ -96,11 +96,11 @@ def parse_actual_manifest(pkg, ver):
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
dependencies = manifest['dependencies']
|
|
|
|
dependencies = manifest['dependencies']
|
|
|
|
except KeyError:
|
|
|
|
except KeyError:
|
|
|
|
dependencies = json.loads('{}')
|
|
|
|
dependencies = {}
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
scripts = manifest['scripts']
|
|
|
|
scripts = manifest['scripts']
|
|
|
|
except KeyError:
|
|
|
|
except KeyError:
|
|
|
|
scripts = json.loads('{}')
|
|
|
|
scripts = {}
|
|
|
|
name = manifest['name']
|
|
|
|
name = manifest['name']
|
|
|
|
|
|
|
|
|
|
|
|
return Manifest(name, version, dependencies, scripts)
|
|
|
|
return Manifest(name, version, dependencies, scripts)
|
|
|
|