diff options
author | Jeremy Katz <katzj@redhat.com> | 2007-08-28 19:33:10 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2007-08-28 19:33:10 +0000 |
commit | d34cc6d727de3696940adf358104709bfe63dcf1 (patch) | |
tree | 8d3e13c2999913af4bfae85a14d9ad763a3f5e90 /scripts/upd-instroot | |
parent | cf53c77ab298fad7fbf06f85da670e706115b7a8 (diff) | |
download | anaconda-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/upd-instroot')
-rwxr-xr-x | scripts/upd-instroot | 8 |
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" |