diff options
author | Matthias Schwarzott <zzam@gentoo.org> | 2007-12-12 17:43:50 +0000 |
---|---|---|
committer | Matthias Schwarzott <zzam@gentoo.org> | 2007-12-12 17:43:50 +0000 |
commit | 4456348944a0b505d8b84a1536954ad927c99ab3 (patch) | |
tree | 34ff5037208cc51ab3d3805b2dbc6fb54ac56f5a /eclass/vdr-plugin.eclass | |
parent | Version bump. (diff) | |
download | gentoo-2-4456348944a0b505d8b84a1536954ad927c99ab3.tar.gz gentoo-2-4456348944a0b505d8b84a1536954ad927c99ab3.tar.bz2 gentoo-2-4456348944a0b505d8b84a1536954ad927c99ab3.zip |
Changed code to not trigger portage read-only variable cleanup.
Diffstat (limited to 'eclass/vdr-plugin.eclass')
-rw-r--r-- | eclass/vdr-plugin.eclass | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/eclass/vdr-plugin.eclass b/eclass/vdr-plugin.eclass index eae84d722991..f178e70c5d8d 100644 --- a/eclass/vdr-plugin.eclass +++ b/eclass/vdr-plugin.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/vdr-plugin.eclass,v 1.51 2007/10/08 14:58:14 zzam Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/vdr-plugin.eclass,v 1.52 2007/12/12 17:43:50 zzam Exp $ # # Author: # Matthias Schwarzott <zzam@gentoo.org> @@ -86,12 +86,20 @@ create_plugindb_file() { local NEW_VDRPLUGINDB_DIR=/usr/share/vdr/vdrplugin-rebuild/ local DB_FILE="${NEW_VDRPLUGINDB_DIR}/${CATEGORY}-${PF}" insinto "${NEW_VDRPLUGINDB_DIR}" - cat <<-EOT > "${D}/${DB_FILE}" - VDRPLUGIN_DB=1 - CREATOR=ECLASS - EBUILD=${CATEGORY}/${PN} - EBUILD_V=${PVR} - EOT + +# BUG: portage-2.1.4_rc9 will delete the EBUILD= line, so we cannot use this code. +# cat <<-EOT > "${D}/${DB_FILE}" +# VDRPLUGIN_DB=1 +# CREATOR=ECLASS +# EBUILD=${CATEGORY}/${PN} +# EBUILD_V=${PVR} +# EOT + { + echo "VDRPLUGIN_DB=1" + echo "CREATOR=ECLASS" + echo "EBUILD=${CATEGORY}/${PN}" + echo "EBUILD_V=${PVR}" + } > "${D}/${DB_FILE}" } # Delete files created outside of vdr-plugin.eclass |