Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 03 Mar 2024 12:31:29 +0000
From:      bugzilla-noreply@freebsd.org
To:        ruby@FreeBSD.org
Subject:   [Bug 277395] ports-mgmt/portupgrade with lang/ruby32 fails with: undefined method `exists?' for File:Class
Message-ID:  <bug-277395-21402-Jcd0immXvT@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-277395-21402@https.bugs.freebsd.org/bugzilla/>
References:  <bug-277395-21402@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277395

--- Comment #12 from bagas <bagas1983@mail.ru> ---
In fact, need to change two lines in two files, why is there so much water =
in
the patch?

https://people.freebsd.org/~tcberner/patches/0001-ports-mgmt-portupgrade-us=
e-File.exist-instead-of-obs.patch

bin/portsclean
+-    dirs.delete(d) if ! (File.exists?(d) && File.stat(d).directory?)
++    dirs.delete(d) if ! (File.exist?(d) && File.stat(d).directory?)

lib/pkgtools/pkgtools.rb
+-  if File.exists?(custom_script)
++  if File.exist?(custom_script)

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-277395-21402-Jcd0immXvT>