debian-mirror-gitlab/app/finders/packages/pypi/package_finder.rb
2021-06-08 01:23:25 +05:30

17 lines
327 B
Ruby

# frozen_string_literal: true
module Packages
module Pypi
class PackageFinder < ::Packages::GroupOrProjectPackageFinder
def execute
packages.by_file_name_and_sha256(@params[:filename], @params[:sha256])
end
private
def packages
base.pypi.has_version
end
end
end
end