# HG changeset patch # User Pascal Bellard # Date 1211278653 0 # Node ID be31f9fb294aa269877694f12f2110193e9f58b4 # Parent c48294925d77ebee0be796c712cdb168b7141e47 tazpkgbox: add files button diff -r c48294925d77 -r be31f9fb294a lib/tazpkgbox/package_infos --- a/lib/tazpkgbox/package_infos Mon May 19 21:32:24 2008 +0000 +++ b/lib/tazpkgbox/package_infos Tue May 20 10:17:33 2008 +0000 @@ -7,6 +7,33 @@ PKG=`cat /tmp/tazpkgbox/pkg | sed s/" "/""/g` +if [ "$1" = "list_files" ]; then + tazpkg list-files $2 | awk ' +BEGIN { ls=0 } { + if (/^===/) ls=1-ls; + else if (ls) system("stat -c \"%A|%U|%G|%s|%n\" " $0); +}' + exit 0 +fi + +export LIST_FILES=" + + + + 600160 + + $0 list_files $PKG + + + + + + +" + # Installed or not installed, that the question. if [ -d /var/lib/tazpkg/installed/$PKG ]; then PACKED_SIZE="" @@ -75,6 +102,11 @@ INSTALLED_PACKAGE_ACTIONS +