summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2007-08-28 19:33:10 +0000
committerJeremy Katz <katzj@redhat.com>2007-08-28 19:33:10 +0000
commitd34cc6d727de3696940adf358104709bfe63dcf1 (patch)
tree8d3e13c2999913af4bfae85a14d9ad763a3f5e90 /scripts
parentcf53c77ab298fad7fbf06f85da670e706115b7a8 (diff)
downloadanaconda-d34cc6d727de3696940adf358104709bfe63dcf1.tar.gz
anaconda-d34cc6d727de3696940adf358104709bfe63dcf1.tar.xz
anaconda-d34cc6d727de3696940adf358104709bfe63dcf1.zip
2007-08-28 Jeremy Katz <katzj@redhat.com>
* scripts/upd-instroot (LDSO): Fix symlink handling
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/upd-instroot8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/upd-instroot b/scripts/upd-instroot
index 2de693326..0b2b0dec6 100755
--- a/scripts/upd-instroot
+++ b/scripts/upd-instroot
@@ -142,7 +142,13 @@ instFile() {
elif [ ! -d $DESTROOT/`dirname $FILE` ]; then
mkdir -p $DESTROOT/`dirname $FILE`
fi
- cp -aL $FILE $DESTROOT/`dirname $FILE`
+ if [ -L $FILE ]; then
+ cp -al $FILE $DESTROOT/`dirname $FILE`
+ instFile `readlink $FILE`
+ return
+ else
+ cp -aL $FILE $DESTROOT/`dirname $FILE`
+ fi
get_dso_deps "$FILE"
local DEPS="$DSO_DEPS"