# HG changeset patch # User Pascal Bellard # Date 1211483289 0 # Node ID 404417fa9f9328593c146f19d255f6ec2d7cfc80 # Parent 7cfc23ba1a4d7cb63253e769efdb1e6d5410acc4 tazpkgbox: add list of files for mirror packages diff -r 7cfc23ba1a4d -r 404417fa9f93 lib/tazpkgbox/package_infos --- a/lib/tazpkgbox/package_infos Thu May 22 16:30:16 2008 +0000 +++ b/lib/tazpkgbox/package_infos Thu May 22 19:08:09 2008 +0000 @@ -16,6 +16,12 @@ exit 0 fi +if [ "$1" = "list_files_mirror" ]; then + unlzma -c /var/lib/tazpkg/files.list.lzma | grep -- "^$2:" | \ + awk '{ print substr($0,index($0,":")+2) }' + exit 0 +fi + export LIST_FILES=" @@ -34,6 +40,24 @@ " +export LIST_FILES_MIRROR=" + + + + 300160 + + $0 list_files_mirror $PKG + + + + + + +" + # Installed or not installed, that the question. if [ -d /var/lib/tazpkg/installed/$PKG ]; then PACKED_SIZE="" @@ -155,6 +179,11 @@ MIRRORED_PACKAGE_ACTIONS +