Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
Removed src from zip path in mini-manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
robhudson committed Dec 13, 2012
1 parent c094e28 commit 244a944
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mkt/detail/views.py
Expand Up @@ -77,13 +77,13 @@ def manifest(request, uuid):
# TODO: Consider caching the os.stat call to avoid FS hits.
package_name = 'packaged-apps/blocklisted.zip'
package_path = os.path.join(settings.MEDIA_ROOT, package_name)
package_url = os.path.join(settings.MEDIA_URL, package_name)
data = {
'name': addon.name,
'size': storage.size(package_path),
'release_notes':
_(u'This app has been blocked for your protection.'),
'package_path': absolutify(os.path.join(settings.MEDIA_URL,
package_name)),
'package_path': absolutify(package_url),
}

# Generate the minifest and add it to the hash.
Expand Down
5 changes: 4 additions & 1 deletion mkt/webapps/models.py
Expand Up @@ -646,13 +646,16 @@ def get_cached_manifest(self, force=False):
else:
file = version.all_files[0]
manifest = self.get_manifest_json()
package_path = absolutify(
os.path.join(reverse('downloads.file', args=[file.id]),
file.filename))

data = {
'name': self.name,
'version': version.version,
'size': file.size,
'release_notes': version.releasenotes,
'package_path': file.get_url_path('manifest'),
'package_path': package_path,
}
if 'icons' in manifest:
data['icons'] = manifest['icons']
Expand Down

0 comments on commit 244a944

Please sign in to comment.