# HG changeset patch # User Christopher Rogers # Date 1352020441 0 # Node ID 83966e88a5da13dbb59ad3711f66e9e6710ea8ea # Parent 9f84fa885954575209c01b98599c119f16cc4928 lxde: Add local root variable to post_install and post_remove scripts so tazpkg --root will work with it. diff -r 9f84fa885954 -r 83966e88a5da lxde/receipt --- a/lxde/receipt Sat Nov 03 16:23:37 2012 +0100 +++ b/lxde/receipt Sun Nov 04 09:14:01 2012 +0000 @@ -9,7 +9,7 @@ TAGS="wm desktop" SUGGESTED="lxterminal lxdm pcmanfm" -DEPENDS="xorg-libX11 gtk+ lxpanel lxtask lxappearance lxsession +DEPENDS="xorg-libX11 gtk+ lxpanel lxtask lxappearance lxsession \ lxsession-edit lxrandr lxinput openbox obconf viewnior leafpad \ slitaz-configs" @@ -27,6 +27,8 @@ # Add WM to SLIM available sessions. post_install() { + local root + root=$1 res=$(cat $root/etc/slim.conf | grep ^session | sed s/"sessions. *"//) if ! echo "$res" | grep -q $PACKAGE; then echo -n "Adding $PACKAGE to /etc/slim.conf..." @@ -38,6 +40,8 @@ # Remove WM from SLIM available sessions. post_remove() { + local root + root=$1 if grep -q $PACKAGE $root/etc/slim.conf; then sed -i s/,$PACKAGE// $root/etc/slim.conf fi