[Bug 277395] ports-mgmt/portupgrade with lang/ruby32 fails with: undefined method `exists?' for File:Class
Date: Mon, 25 Mar 2024 14:36:15 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277395
--- Comment #15 from Harald Langner <hlangner@alice-dsl.net> ---
(In reply to Tobias C. Berner from comment #1)
Hi,
why not change the tow typo's?
In Version : 2.4.16_3,2 the error is still there.
in /usr/local/sbin/portsclean
change .exits to exist
285 #HL dirs.delete(d) if ! (File.exists?(d) && File.stat(d).directory?)
dirs.delete(d) if ! (File.exist?(d) && File.stat(d).directory?)
and in
/usr/local/lib/ruby/site_ruby/3.2/pkgtools
change .exits to exist
527 #HL: if File.exists?(custom_script)
if File.exist?(custom_script)
and all is working fine.
--
You are receiving this mail because:
You are on the CC list for the bug.