diff options
author | tron <tron> | 1999-08-24 20:39:01 +0000 |
---|---|---|
committer | tron <tron> | 1999-08-24 20:39:01 +0000 |
commit | 7963739f309f7ecb3a6adff7e03bdd70ee7f7c77 (patch) | |
tree | 019455313316a93a33d87532c418f1db1c31846e /emulators/suse_base | |
parent | 452d884151777b3ce50d47cdfa14634bcb27d35f (diff) | |
download | pkgsrc-7963739f309f7ecb3a6adff7e03bdd70ee7f7c77.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 |