EVOLUTION-MANAGER
Edit File: lookaside.py
# Copyright (c) 2015 - Red Hat Inc. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the # Free Software Foundation; either version 2 of the License, or (at your # option) any later version. See http://www.gnu.org/copyleft/gpl.html for # the full text of the license. """Interact with the Fedora lookaside cache We need to override the pyrpkg.lookasidecache module to handle our custom download path. """ from pyrpkg.lookaside import CGILookasideCache class FedoraLookasideCache(CGILookasideCache): def __init__(self, hashtype, download_url, upload_url): super(FedoraLookasideCache, self).__init__( hashtype, download_url, upload_url) self.download_path = ( '%(name)s/%(filename)s/%(hashtype)s/%(hash)s/%(filename)s')