Browse Source

Tobias Hintze, Clifford Wolf:


			
			
				rocklinux
			
			
		
Tobias Hintze 20 years ago
parent
commit
ceca1b0eae
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      scripts/Build-Pkg

+ 2
- 2
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

Loading…
Cancel
Save