- follow symlinks on extracting rpms during preinstall. chroot is protecting us.
authorAdrian Schröter <adrian@suse.de>
Wed, 30 May 2012 11:08:15 +0000 (13:08 +0200)
committerAdrian Schröter <adrian@suse.de>
Wed, 30 May 2012 11:08:15 +0000 (13:08 +0200)
  (required for broken Fedora 17 packages)

init_buildsystem

index a55b8cb..0bccd20 100755 (executable)
@@ -139,8 +139,8 @@ preinstall()
     echo "preinstalling $1..."
     cd $BUILD_ROOT || cleanup_and_exit 1
     if test -x /usr/bin/bsdtar ; then
-       CPIO="/usr/bin/bsdtar --chroot -o --numeric-owner -x -f-"
-       TAR="/usr/bin/bsdtar --chroot -o --numeric-owner -x"
+       CPIO="/usr/bin/bsdtar -P --chroot -o --numeric-owner -x -f-"
+       TAR="/usr/bin/bsdtar -P --chroot -o --numeric-owner -x"
     else
        # cpio isn't safe so we require bsdtar for VMs. chroot is
        # unsafe anyways so it's ok for that.