don't do the BSD thing in prefix
authorFabian Groffen <grobian@gentoo.org>
Fri, 2 Mar 2007 14:18:50 +0000 (14:18 -0000)
committerFabian Groffen <grobian@gentoo.org>
Fri, 2 Mar 2007 14:18:50 +0000 (14:18 -0000)
svn path=/main/branches/prefix/; revision=6132

bin/etc-update

index f3e2e101b729108b34590c94c3ad3a5380aa79da..61a427d57625e143ec0484f5dc9a87e2be7a3691 100755 (executable)
@@ -386,7 +386,7 @@ Please select from the menu above (-1 to exit, losing this merge): "
                        my_input=$(read_int)
                        case ${my_input} in
                                1) echo "Replacing ${ofile} with ${mfile}"
-                                  if [[ ${USERLAND} == GNU ]]; then
+                                  if [[ ${USERLAND} == GNU ]] || [[ ${EPREFIX%/} != "" ]]; then
                                       chmod --reference="${ofile}" "${mfile}"
                                   else
                                       chmod $(stat -f %Mp%Lp "${ofile}") "${mfile}"