Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 336730 Details for
Bug 367325
savedconfig.eclass: save path issues when using custom PORTAGE_CONFIGROOT
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
savedconfig.patch
savedconfig.patch (text/plain), 1.31 KB, created by
Krzysztof Nowicki
on 2013-01-24 16:21:26 UTC
(
hide
)
Description:
savedconfig.patch
Filename:
MIME Type:
Creator:
Krzysztof Nowicki
Created:
2013-01-24 16:21:26 UTC
Size:
1.31 KB
patch
obsolete
>--- a/eclass/savedconfig.eclass 2012-01-04 09:23:51.000000000 +0100 >+++ b/eclass/savedconfig.eclass 2013-01-24 15:57:22.108896199 +0100 >@@ -34,20 +34,21 @@ > # Be lazy in our EAPI compat > : ${ED:=${D}} > >- local dest="/etc/portage/savedconfig/${CATEGORY}" >+ local dest="${PORTAGE_CONFIGROOT}/etc/portage/savedconfig/${CATEGORY}" >+ addwrite ${dest} > if [[ $# -eq 1 && -f $1 ]] ; then > # Just one file, so have the ${PF} be that config file >- dodir "${dest}" >- cp "$@" "${ED}/${dest}/${PF}" || die "failed to save $*" >+ mkdir -p "${dest}" >+ cp "$@" "${dest}/${PF}" || die "failed to save $*" > else > # A dir, or multiple files, so have the ${PF} be a dir > # with all the saved stuff below it >- dodir "${dest}/${PF}" >- treecopy "$@" "${ED}/${dest}/${PF}" || die "failed to save $*" >+ mkdir -p "${dest}/${PF}" >+ treecopy "$@" "${dest}/${PF}" || die "failed to save $*" > fi > > elog "Your configuration for ${CATEGORY}/${PF} has been saved in " >- elog "/etc/portage/savedconfig/${CATEGORY}/${PF} for your editing pleasure." >+ elog "${PORTAGE_CONFIGROOT}/etc/portage/savedconfig/${CATEGORY}/${PF} for your editing pleasure." > elog "You can edit these files by hand and remerge this package with" > elog "USE=savedconfig to customise the configuration." > elog "You can rename this file/directory to one of the following for"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 367325
:
273241
|
336730