tiny-slitaz 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 |
files | helper index.php pkgs/mklists step1.php |
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
2.1 --- a/index.php Fri Mar 23 19:37:38 2012 +0100 2.2 +++ b/index.php Tue Aug 21 11:16:18 2012 +0200 2.3 @@ -56,6 +56,7 @@ 2.4 <h2>Build your configuration from binary packages</h2> 2.5 2.6 <?php 2.7 +proc_nice(10); 2.8 include "step1.php"; 2.9 include "step2.php"; 2.10 include "step3.php";
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/pkgs/mklists Tue Aug 21 11:16:18 2012 +0200 3.3 @@ -0,0 +1,13 @@ 3.4 +#!/bin/sh 3.5 + 3.6 +PKGS=/var/www/slitaz/mirror/packages/tiny 3.7 + 3.8 +cd $(dirname $0) 3.9 +for i in $(ls $PKGS/); do [ -e $i ] || ln -s $PKGS/$i; done 3.10 + 3.11 +for i in */receipt ; do 3.12 + . $i 3.13 + while read line; do 3.14 + echo "$PACKAGE: $line" 3.15 + done < $(dirname $i)/files.list 3.16 +done | lzma e files.list.lzma -si