tiny-slitaz diff helper @ rev 1

Auto-update files.list.lzma
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Aug 21 11:16:18 2012 +0200 (2012-08-21)
parents 55f97ee147e8
children 0cc8a51fbb10
line diff
     1.1 --- a/helper	Fri Mar 23 19:37:38 2012 +0100
     1.2 +++ b/helper	Tue Aug 21 11:16:18 2012 +0200
     1.3 @@ -1,6 +1,13 @@
     1.4  #!/bin/sh
     1.5  # $0 kernel size [initrd]
     1.6  
     1.7 +init()
     1.8 +{
     1.9 +	PKGS=$(dirname $(readlink pkgs/base-tiny*))
    1.10 +	[ $PKGS/$(ls -tr $PKGS | tail -n 1) -nt pkgs/files.list.lzma ] &&
    1.11 +	pkgs/mklists
    1.12 +}
    1.13 +
    1.14  list_pkgs()
    1.15  {
    1.16  	TMPDIR=$2
    1.17 @@ -301,6 +308,7 @@
    1.18  --pkgs-extract) pkgs_extract $2 $3 ;;
    1.19  --remove) rm -rf $2; exit ;;
    1.20  --get-pkg) get_package $2 $3 ;;
    1.21 +--init) init ;;
    1.22  esac
    1.23  
    1.24  if [ "x$1" == "x--mkrootfs" ]; then