summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authortron <tron>1999-08-24 20:39:01 +0000
committertron <tron>1999-08-24 20:39:01 +0000
commit04ab028cbc70091576a7abbf029727b6e1f10601 (patch)
tree019455313316a93a33d87532c418f1db1c31846e /emulators
parent7b74f8798e043c00e4c107acf4454c9884725222 (diff)
downloadpkgsrc-04ab028cbc70091576a7abbf029727b6e1f10601.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')
-rwxr-xr-xemulators/suse_base/scripts/rpm2pkg.sh7
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