diff options
author | tron <tron@pkgsrc.org> | 1999-08-24 20:39:01 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 1999-08-24 20:39:01 +0000 |
commit | 71a7a90c4143e38aa9b21d2ae200a818d8c7ffc0 (patch) | |
tree | 019455313316a93a33d87532c418f1db1c31846e /emulators/suse_base | |
parent | 59aba06c9cf3d461f2c18053a57bc7f499a454dd (diff) | |
download | pkgsrc-71a7a90c4143e38aa9b21d2ae200a818d8c7ffc0.tar.gz |
Modify symbolic links so that "pkg_create" will turn them into relative
links which will prevent emulation problems later.
Diffstat (limited to 'emulators/suse_base')
-rwxr-xr-x | emulators/suse_base/scripts/rpm2pkg.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/emulators/suse_base/scripts/rpm2pkg.sh b/emulators/suse_base/scripts/rpm2pkg.sh index 4c561f9d26f..55aaf984c34 100755 --- a/emulators/suse_base/scripts/rpm2pkg.sh +++ b/emulators/suse_base/scripts/rpm2pkg.sh @@ -31,6 +31,13 @@ grep -v ^pax:\ $LIST | @@AWK@@ '{print("@@EMULSUBDIR@@/"$1)}' | then set - `file $ENTRY` shift `expr $# - 1`; + case $1 in + /* ) + set - @@EMULDIR@@$1 + rm $ENTRY + ln -s $1 $ENTRY + ;; + esac if cd `dirname $ENTRY` && test -f $1 then echo $ENTRY |