Skip to content

Commit

Permalink
Return gzip urls.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberdelia committed Jul 29, 2015
1 parent 077550b commit c360a2a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pipeline/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ def post_process(self, paths, dry_run=False, **options):
gzipped_path = self.save(gzipped_path, gzipped_file)
yield gzipped_path, gzipped_path, True

def url(self, name, force=False):
url = super(GZIPMixin, self).url(name, force)
if matches_patterns(name, self.gzip_patterns):
return "{0}.gz".format(url)
return url


class NonPackagingMixin(object):
packing = False
Expand Down

0 comments on commit c360a2a

Please sign in to comment.