utils/pypi: remove extra newline when updating resources

This commit is contained in:
Branch Vincent 2025-02-08 09:09:52 -08:00
parent f9b33d7c44
commit 3d7c6fa10f
No known key found for this signature in database

View File

@ -401,7 +401,8 @@ module PyPI
end
end
resource_section = "#{package_errors}\n#{new_resource_blocks}"
package_errors += "\n" if package_errors.present?
resource_section = "#{package_errors}#{new_resource_blocks}"
odie "Excluded superfluous packages: #{exclude_packages.join(", ")}" if exclude_packages.any?