debian-mirror-gitlab/app/finders/packages/pypi/package_finder.rb

18 lines
327 B
Ruby
Raw Normal View History

2021-06-08 01:23:25 +05:30
# 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