# HG changeset patch # User Pascal Bellard # Date 1345565737 -7200 # Node ID 0cc8a51fbb10adf94119c1818b7b083aed125351 # Parent d203aafad141c70dfe99558baec5887389ad63b7 Auto-update files.list.lzma (again) diff -r d203aafad141 -r 0cc8a51fbb10 helper --- a/helper Tue Aug 21 11:16:18 2012 +0200 +++ b/helper Tue Aug 21 18:15:37 2012 +0200 @@ -3,9 +3,11 @@ init() { - PKGS=$(dirname $(readlink pkgs/base-tiny*)) - [ $PKGS/$(ls -tr $PKGS | tail -n 1) -nt pkgs/files.list.lzma ] && - pkgs/mklists + [ "$(ls -t pkgs | sed q)" == "files.list.lzma" ] || + for i in pkgs/*/receipt ; do + . $i + sed "s/^/$PACKAGE: /" $(dirname $i)/files.list + done | lzma e pkgs/files.list.lzma -si } list_pkgs() diff -r d203aafad141 -r 0cc8a51fbb10 pkgs/mklists --- a/pkgs/mklists Tue Aug 21 11:16:18 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ -#!/bin/sh - -PKGS=/var/www/slitaz/mirror/packages/tiny - -cd $(dirname $0) -for i in $(ls $PKGS/); do [ -e $i ] || ln -s $PKGS/$i; done - -for i in */receipt ; do - . $i - while read line; do - echo "$PACKAGE: $line" - done < $(dirname $i)/files.list -done | lzma e files.list.lzma -si