debian-mirror-gitlab/app/finders/packages/pypi/packages_finder.rb
2021-10-27 15:23:28 +05:30

17 lines
316 B
Ruby

# frozen_string_literal: true
module Packages
module Pypi
class PackagesFinder < ::Packages::GroupOrProjectPackageFinder
def execute
packages.with_normalized_pypi_name(@params[:package_name])
end
private
def packages
base.pypi.has_version
end
end
end
end