+from distlib.util import split_filename
# actual file when resolving the X-accel headers.
- package = packages_path_to_package_name.match(path)
+ filename, _ = os.path.splitext(os.path.basename(path))
+ package, _, _ = split_filename(filename)
# Make sure that we associate the delivered file with the serial this
# is valid for. Intended to support mirrors to more easily achieve
# consistency with files that are newer than they may expect.
- package = package.group(2)
serial = self.store.last_serial_for_package(package)