public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] portage r9628 - main/trunk/bin
@ 2008-03-30  9:17 Zac Medico (zmedico)
  0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2008-03-30  9:17 UTC (permalink / raw
  To: gentoo-commits

Author: zmedico
Date: 2008-03-30 09:17:01 +0000 (Sun, 30 Mar 2008)
New Revision: 9628

Modified:
   main/trunk/bin/doins
Log:
Make doins clean up it's own temp files. This solves an odd issue in
dyn_package() when portage 2.1.x is installing portage-2.2 and temp
python module files from doins are imported instead of the expected
ones.


Modified: main/trunk/bin/doins
===================================================================
--- main/trunk/bin/doins	2008-03-30 07:24:05 UTC (rev 9627)
+++ main/trunk/bin/doins	2008-03-30 09:17:01 UTC (rev 9628)
@@ -28,14 +28,16 @@
 [[ ! -d ${D}${INSDESTTREE} ]] && dodir "${INSDESTTREE}"
 
 _doins() {
-	local mysrc="$1" mydir="$2"
+	local mysrc="$1" mydir="$2" cleanup=""
 
 	if [ -L "$mysrc" ] ; then
 		cp "$mysrc" "${T}"
 		mysrc="${T}/${mysrc##*/}"
+		cleanup=${mysrc}
 	fi
 
 	install ${INSOPTIONS} "${mysrc}" "${D}${INSDESTTREE}/${mydir}"
+	[[ -n ${cleanup} ]] && rm -f "${cleanup}"
 }
 
 _xdoins() {

-- 
gentoo-commits@lists.gentoo.org mailing list



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

only message in thread, other threads:[~2008-03-30  9:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-30  9:17 [gentoo-commits] portage r9628 - main/trunk/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