mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
pypi: unused arg
Signed-off-by: William Woodruff <william@yossarian.net>
This commit is contained in:
parent
57af1abb6c
commit
12613ea2b0
@ -226,7 +226,7 @@ module PyPI
|
|||||||
EOS
|
EOS
|
||||||
end
|
end
|
||||||
|
|
||||||
found_packages = pip_report_to_packages(JSON.parse(pip_output), main_package, exclude_packages).uniq
|
found_packages = pip_report_to_packages(JSON.parse(pip_output), exclude_packages).uniq
|
||||||
|
|
||||||
new_resource_blocks = ""
|
new_resource_blocks = ""
|
||||||
found_packages.sort.each do |package|
|
found_packages.sort.each do |package|
|
||||||
@ -288,7 +288,7 @@ module PyPI
|
|||||||
name.gsub(/[-_.]+/, "-").downcase
|
name.gsub(/[-_.]+/, "-").downcase
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.pip_report_to_packages(report, main_package, exclude_packages)
|
def self.pip_report_to_packages(report, exclude_packages)
|
||||||
return [] if report.blank?
|
return [] if report.blank?
|
||||||
|
|
||||||
report["install"].map do |package|
|
report["install"].map do |package|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user