summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2007-12-12 17:43:50 +0000
committerMatthias Schwarzott <zzam@gentoo.org>2007-12-12 17:43:50 +0000
commit229f3bc24d3a6d9609e2d9f8a9ff12593d9d51f6 (patch)
tree8fd89940294db5d42258897a6d3a89795c139a5e /eclass
parentVersion bump. (diff)
downloadhistorical-229f3bc24d3a6d9609e2d9f8a9ff12593d9d51f6.tar.gz
historical-229f3bc24d3a6d9609e2d9f8a9ff12593d9d51f6.tar.bz2
historical-229f3bc24d3a6d9609e2d9f8a9ff12593d9d51f6.zip
Changed code to not trigger portage read-only variable cleanup.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/vdr-plugin.eclass22
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