wok-6.x rev 21780
cookutils: take care of stuff update dates
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 14 10:28:47 2019 +0200 (2019-07-14) |
parents | b32203f09af8 |
children | 041c7e1cb0eb |
files | cookutils/receipt cookutils/stuff/cook-newest.patch python-six/receipt |
line diff
1.1 --- a/cookutils/receipt Thu Jul 11 16:53:39 2019 +0200 1.2 +++ b/cookutils/receipt Sun Jul 14 10:28:47 2019 +0200 1.3 @@ -22,6 +22,7 @@ 1.4 sed -i 's|\. receipt|. ./receipt|' cook 1.5 patch -p1 -i $stuff/pkgdb-absolute.patch 1.6 patch -p1 -i $stuff/pkgdb-no-parallel.patch 1.7 + patch -p1 -i $stuff/cook-newest.patch 1.8 mkdir -p $DESTDIR/usr/bin $DESTDIR/etc/slitaz 1.9 make DESTDIR=$DESTDIR install 1.10 }
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/cookutils/stuff/cook-newest.patch Sun Jul 14 10:28:47 2019 +0200 2.3 @@ -0,0 +1,14 @@ 2.4 +Force the date of the last produced file to the newest package source file. 2.5 +Take care or receipt *and* stuff 2.6 +--- a/cook 2.7 ++++ b/cook 2.8 +@@ -879,7 +879,8 @@ 2.9 + 2.10 + # Build cpio archives. 2.11 + action 'Compressing the FS...' 2.12 +- find fs -newer $receipt -exec touch -hr $receipt {} \; 2.13 ++ newest="$(find receipt stuff 2>/dev/null | xargs ls -td | sed q)" 2.14 ++ find fs -newer $newest -exec touch -hr $newest {} \; 2.15 + find fs | cpio -o -H newc --quiet | lzma e fs.cpio.lzma -si 2.16 + rm -rf fs 2.17 + status
3.1 --- a/python-six/receipt Thu Jul 11 16:53:39 2019 +0200 3.2 +++ b/python-six/receipt Sun Jul 14 10:28:47 2019 +0200 3.3 @@ -8,7 +8,7 @@ 3.4 MAINTAINER="claudinei@slitaz.org" 3.5 LICENSE="MIT" 3.6 TARBALL="$SOURCE-$VERSION.tar.gz" 3.7 -WEB_SITE="http://packages.python.org/six/" 3.8 +WEB_SITE="https://github.com/benjaminp/six" 3.9 WGET_URL="https://pypi.python.org/packages/source/s/$SOURCE/$TARBALL" 3.10 HOST_ARCH="i486 arm" 3.11