Skip to content

Commit

Permalink
dev-lang/go: fix the trailing slash for EROOT
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Qian <i@bitbili.net>
  • Loading branch information
bekcpear committed Feb 2, 2024
1 parent 195d24f commit a0c1894
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dev-lang/go/go-1.20.13.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ pkg_postinst() {
# cannot use has_version to check the pkg with an overlay name like
# 'dev-lang/go::gentoo', so sad :(
# check the vdb directly
local vdb_path="${EROOT}var/db/pkg" other_go_version_installed line
local vdb_path="${EROOT}/var/db/pkg" other_go_version_installed line
while read -r line; do
if [[ -f "${line}/repository" ]]; then
if [[ "$(cat "${line}/repository")" != ryans ]]; then
Expand Down
2 changes: 1 addition & 1 deletion dev-lang/go/go-1.21.6.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ pkg_postinst() {
# cannot use has_version to check the pkg with an overlay name like
# 'dev-lang/go::gentoo', so sad :(
# check the vdb directly
local vdb_path="${EROOT}var/db/pkg" other_go_version_installed line
local vdb_path="${EROOT}/var/db/pkg" other_go_version_installed line
while read -r line; do
if [[ -f "${line}/repository" ]]; then
if [[ "$(cat "${line}/repository")" != ryans ]]; then
Expand Down

0 comments on commit a0c1894

Please sign in to comment.