Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 102436 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/lib/portage/bin/ebuild.sh (-1 / +9 lines)
Lines 332-338 Link Here
332
		find "$@" -type d -printf "${D}/%p/.keep\n" | tr "\n" "\0" | $XARGS -0 -n100 touch || die "Failed to recursive create .keep files"
332
		find "$@" -type d -printf "${D}/%p/.keep\n" | tr "\n" "\0" | $XARGS -0 -n100 touch || die "Failed to recursive create .keep files"
333
	else
333
	else
334
		for x in "$@"; do
334
		for x in "$@"; do
335
			touch "${D}/${x}/.keep" || die "Failed to create .keep in ${D}/${x}"
335
			if [ -f "${ROOT}/${x}/.keep" ]; then
336
				local i=1
337
				while [ -f "${ROOT}/${x}/.keep${i}" ]; do
338
					i=$(($i + 1))
339
				done
340
				touch "${D}/${x}/.keep${i}" || die "Failed to create .keep${i} in ${D}/${x}"
341
			else
342
				touch "${D}/${x}/.keep" || die "Failed to create .keep in ${D}/${x}"
343
			fi
336
		done
344
		done
337
	fi
345
	fi
338
}
346
}

Return to bug 102436