From ceca1b0eaee6403cfed607e2b317d4dc6962fde9 Mon Sep 17 00:00:00 2001
From: Tobias Hintze
Date: Sat, 18 Sep 2004 19:38:15 +0000
Subject: [PATCH] Tobias Hintze, Clifford Wolf: Added --force-local to backup
tar creation
[2004091709313706139] (https://www.rocklinux.net/submaster)
git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@4319 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
---
scripts/Build-Pkg | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/Build-Pkg b/scripts/Build-Pkg
index e8d3803d0..04b0d5276 100755
--- a/scripts/Build-Pkg
+++ b/scripts/Build-Pkg
@@ -678,7 +678,7 @@ if [ $update = 1 ] ; then
chmod 700 "$xroot/var/adm/backup"
backup_tar="$xroot/var/adm/backup/$(
date '+%Y%m%d%H%M%S')_$xpkg.tar.bz2"
- ( cd $xroot/; tar --no-recursion -cf - -T $builddir/`
+ ( cd $xroot/; tar --no-recursion --force-local -cf - -T $builddir/`
`backup_files.txt || true; ) | bzip2 > $backup_tar
else
update=0
@@ -1128,7 +1128,7 @@ if [ $update = 1 ] ; then
[ -f $xroot/$fn ] && mv $xroot/$fn $xroot/$fn.new
done < $builddir/backup_files.txt
- tar --use-compress-program=bzip2 -C $xroot/ -xpf $backup_tar
+ tar --force-local --use-compress-program=bzip2 -C $xroot/ -xpf $backup_tar
while read fn ; do
cmp -s $fn $fn.new && rm -f $fn.new
|