setupccache: remove obsolete rm command
authorFrank Lichtenheld <flichtenheld@astaro.com>
Wed, 30 May 2012 19:08:57 +0000 (21:08 +0200)
committerFrank Lichtenheld <flichtenheld@astaro.com>
Wed, 30 May 2012 19:08:57 +0000 (21:08 +0200)
$builduserhome is undefined, so that really deletes /bin/gcc etc.
Which is a problem on Fedora 17 where /bin is a symlink to
/usr/bin.

build

diff --git a/build b/build
index c323122..ad81c23 100755 (executable)
--- a/build
+++ b/build
@@ -399,7 +399,6 @@ setupccache()
        echo "export CCACHE_DIR=/.ccache" > "$BUILD_ROOT"/etc/profile.d/build_ccache.sh
        echo 'export PATH=/var/lib/build/ccache/bin:$PATH' >> "$BUILD_ROOT"/etc/profile.d/build_ccache.sh
     else
-       rm -f "$BUILD_ROOT$builduserhome"/bin/{gcc,g++,cc,c++}
        rm -f "$BUILD_ROOT"/var/lib/build/ccache/bin/{gcc,g++,cc,c++}
     fi
 }