cookutils diff modules/pack @ rev 1141

modules/pack: take care of stuff update dates
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 14 11:52:54 2019 +0200 (2019-07-14)
parents 6867a12b73aa
children
line diff
     1.1 --- a/modules/pack	Sat Feb 02 13:36:54 2019 +0200
     1.2 +++ b/modules/pack	Sun Jul 14 11:52:54 2019 +0200
     1.3 @@ -718,7 +718,8 @@
     1.4  
     1.5  	# Build fs cpio archive
     1.6  	action 'Compressing the FS...'
     1.7 -	find fs -newer $receipt -exec touch -hr $receipt '{}' \;
     1.8 +	newest="$(find receipt stuff 2>/dev/null | xargs ls -td | sed q)"
     1.9 +	find fs -newer $newest -exec touch -hr $newest '{}' \;
    1.10  #	find fs | cpio -o -H newc --quiet | lzma-alone e fs.cpio.lzma -si
    1.11  	find fs | cpio -o -H newc --quiet | /bin/lzma -qzeT0 >fs.cpio.lzma
    1.12  	mv fs ../