Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 278649 - app-portage/portage-utils: double "/" shown by elog
Summary: app-portage/portage-utils: double "/" shown by elog
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Portage Utils Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-22 08:34 UTC by Pacho Ramos
Modified: 2010-01-24 21:25 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2009-07-22 08:34:32 UTC
This is because ${ROOT} already ends with a "/", then, proper elog should be:
 "${ROOT}etc/portage/postsync.d/q-reinitialize has been installed for convenience"

instead of:
 "${ROOT}/etc/portage/postsync.d/q-reinitialize has been installed for convenience"

And:
"If you wish for it to be automatically run at the end of every --sync simply chmod +x ${ROOT}etc/portage/postsync.d/q-reinitialize"

instead of:
"If you wish for it to be automatically run at the end of every --sync simply chmod +x ${ROOT}/etc/portage/postsync.d/q-reinitialize"


Thanks

Reproducible: Always
Comment 1 Daniel Pielmeier gentoo-dev 2009-07-22 21:02:57 UTC
Does $ROOT always end with a slash even on prefix systems for instance?

One can workaround this by using someting like this:
${ROOT%/}/etc/portage/postsync.d/q-reinitialize
This removes a trailing slash from the variable if there is one.
Comment 2 SpanKY gentoo-dev 2010-01-24 21:25:41 UTC
ROOT is no longer in pkg_postinst