apparently ${T} isn't valid outside of sandbox

This commit is contained in:
Zero_Chaos 2010-03-05 03:03:01 +00:00
parent 0e32e008a1
commit 5da06836ae
2 changed files with 3 additions and 3 deletions

View file

@ -1,2 +1,2 @@
AUX user- 476 RMD160 f7297498398ef10163194f8e419c9b0d3ed0f9e3 SHA1 6ad6198a5304f4a38eff44af477a34b5cb290175 SHA256 cd8bdd570b4f8f368448b77ea28985b4da3ddaec279c7576291c11596bd6cb30
EBUILD pentoo-etc-portage-9999.ebuild 2046 RMD160 a357ce2dbfb8bffeda3f007a799a2be2c6604e60 SHA1 db564fce044527e9cc88b764bb46be4d5718d243 SHA256 e0d78aa280dbf12f16b0c9cb9da3f97f38946ad6447cfccdbf57642d3c27d83d
EBUILD pentoo-etc-portage-9999.ebuild 2103 RMD160 7c406ac5a33f55df2b8e85af81a96afb612f58b6 SHA1 c161111e3f821774949fd23a9729f4214c5d401e SHA256 10a23f3e369579c99cdd6dea37b106c504a278589e8b39b22b95351ded1b3081

View file

@ -17,12 +17,12 @@ RDEPEND=""
pkg_setup() {
#We clean up old mistakes here, don't add as a blocker
grep -v 'x11-base/xorg-x11' "${ROOT}"/var/lib/portage/world > "{T}"/world
grep -v 'x11-base/xorg-x11' "${ROOT}"/var/lib/portage/world > "${ROOT}"/var/lib/portage/world.cleansed
local grepret=$?
[ ${grepret} -ge 2 ] && [ -f ${ROOT}/var/lib/portage/world ] && die "Tried to grep the world file and got an error."
[ ${grepret} == 0 ] && einfo "x11-base/xorg-x11 has been purged from world. It's a good thing."
[ ${grepret} == 1 ] && einfo "x11-base/xorg-x11 was found not in the world file. It's a good thing."
mv "${T}"/world "${ROOT}"/var/lib/portage/world || die "Fixing world failed"
mv "${ROOT}"/var/lib/portage/world.cleansed "${ROOT}"/var/lib/portage/world || die "Fixing world failed"
}
src_install() {