public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] portage r12994 - main/branches/2.1.6/bin
@ 2009-03-11  6:35 Zac Medico (zmedico)
  0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2009-03-11  6:35 UTC (permalink / raw
  To: gentoo-commits

Author: zmedico
Date: 2009-03-11 06:35:43 +0000 (Wed, 11 Mar 2009)
New Revision: 12994

Modified:
   main/branches/2.1.6/bin/ebuild.sh
Log:
Fix vdb entry writting code in dyn_install() to avoid generating empty entries
in some cases. Thanks to Ned Ludd <solar@g.o> for reporting. (trunk r12745)

Modified: main/branches/2.1.6/bin/ebuild.sh
===================================================================
--- main/branches/2.1.6/bin/ebuild.sh	2009-03-11 06:35:18 UTC (rev 12993)
+++ main/branches/2.1.6/bin/ebuild.sh	2009-03-11 06:35:43 UTC (rev 12994)
@@ -1003,14 +1003,15 @@
 
 	cd "${PORTAGE_BUILDDIR}"/build-info
 	set -f
-	local f
+	local f x
+	IFS=$' \t\n\r'
 	for f in ASFLAGS CATEGORY CBUILD CC CFLAGS CHOST CTARGET CXX \
 		CXXFLAGS DEPEND EXTRA_ECONF EXTRA_EINSTALL EXTRA_MAKE \
 		FEATURES INHERITED IUSE LDFLAGS LIBCFLAGS LIBCXXFLAGS \
 		LICENSE PDEPEND PF PKGUSE PROPERTIES PROVIDE RDEPEND RESTRICT SLOT \
 		KEYWORDS HOMEPAGE SRC_URI DESCRIPTION; do
-		[ -n "${!f}" ] && echo $(echo "${!f}" | \
-			tr '\n,\r,\t' ' , , ' | sed s/'  \+'/' '/g) > ${f}
+		x=$(echo -n ${!f})
+		[[ -n $x ]] && echo "$x" > $f
 	done
 	echo "${USE}"       > USE
 	echo "${EAPI:-0}"   > EAPI




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-03-11  6:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-11  6:35 [gentoo-commits] portage r12994 - main/branches/2.1.6/bin Zac Medico (zmedico)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox