Forgot some ${D}'s to replace
authorFabian Groffen <grobian@gentoo.org>
Sat, 28 Oct 2006 16:01:35 +0000 (16:01 -0000)
committerFabian Groffen <grobian@gentoo.org>
Sat, 28 Oct 2006 16:01:35 +0000 (16:01 -0000)
svn path=/main/branches/prefix/; revision=4866

bin/misc-functions.sh

index d673b37e2c377b804e98999ea2cefa512bcb514f..7a58cd57a219c0f563866786eb29d8a3302db1d4 100644 (file)
@@ -271,18 +271,18 @@ preinst_bsdflags() {
        type -p chflags &>/dev/null || return 0
        type -p mtree &>/dev/null || return 1
        # Save all the file flags for restoration after installation.
-       mtree -c -p "${D}" -k flags > "${T}/bsdflags.mtree"
+       mtree -c -p "${ED}" -k flags > "${T}/bsdflags.mtree"
        # Remove all the file flags so that the merge phase can do anything
        # necessary.
-       chflags -R noschg,nouchg,nosappnd,nouappnd "${D}"
-       chflags -R nosunlnk,nouunlnk "${D}" 2>/dev/null
+       chflags -R noschg,nouchg,nosappnd,nouappnd "${ED}"
+       chflags -R nosunlnk,nouunlnk "${ED}" 2>/dev/null
 }
 
 postinst_bsdflags() {
        type -p chflags &>/dev/null || return 0
        type -p mtree &>/dev/null || return 1
        # Restore all the file flags that were saved before installation.
-       mtree -e -p "${ROOT}" -U -k flags < "${T}/bsdflags.mtree" &> /dev/null
+       mtree -e -p "${EROOT}" -U -k flags < "${T}/bsdflags.mtree" &> /dev/null
 }
 
 preinst_mask() {