'Creates a new version who\'s file is the blocklisted app found in /media
and sets status to STATUS_BLOCKLISTED.'

def create_blocklisted_version(self):

    blocklisted_path = os.path.join(settings.MEDIA_ROOT, 'packaged-apps', 'blocklisted.zip')
    v = Version.objects.create(addon=self, version='blocklisted')
    f = File(version=v, status=mkt.STATUS_BLOCKED)
    f.filename = f.generate_filename()
    copy_stored_file(blocklisted_path, f.file_path, src_storage=local_storage, dst_storage=private_storage)
    log.info((u'[Webapp:%s]    Copied    blocklisted    app    from    %s    to    %s' % (self.id, blocklisted_path, f.file_path)))
    f.size = private_storage.size(f.file_path)
    f.hash = f.generate_hash(f.file_path)
    f.save()
    mf = WebAppParser().get_json_data(private_storage.open(f.file_path))
    AppManifest.objects.create(version=v, manifest=json.dumps(mf))
    self.sign_if_packaged(v.pk)
    self.status = mkt.STATUS_BLOCKED
    self._current_version = v
    self.save()
