tazpkg rev 99
tazpkgbox: add list of files for mirror packages
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 22 19:08:09 2008 +0000 (2008-05-22) |
parents | 7cfc23ba1a4d |
children | d72efc8ec019 |
files | lib/tazpkgbox/package_infos |
line diff
1.1 --- a/lib/tazpkgbox/package_infos Thu May 22 16:30:16 2008 +0000 1.2 +++ b/lib/tazpkgbox/package_infos Thu May 22 19:08:09 2008 +0000 1.3 @@ -16,6 +16,12 @@ 1.4 exit 0 1.5 fi 1.6 1.7 +if [ "$1" = "list_files_mirror" ]; then 1.8 + unlzma -c /var/lib/tazpkg/files.list.lzma | grep -- "^$2:" | \ 1.9 + awk '{ print substr($0,index($0,":")+2) }' 1.10 + exit 0 1.11 +fi 1.12 + 1.13 export LIST_FILES=" 1.14 <window title=\"$PKG files\" icon-name=\"system-file-manager\"> 1.15 <vbox> 1.16 @@ -34,6 +40,24 @@ 1.17 </window> 1.18 " 1.19 1.20 +export LIST_FILES_MIRROR=" 1.21 +<window title=\"$PKG files\" icon-name=\"system-file-manager\"> 1.22 + <vbox> 1.23 + <tree> 1.24 + <width>300</width><height>160</height> 1.25 + <label>File Name</label> 1.26 + <input> $0 list_files_mirror $PKG </input> 1.27 + </tree> 1.28 + <hbox> 1.29 + <button> 1.30 + <input file icon=\"gtk-close\"></input> 1.31 + <action type=\"closewindow\">INSTALLED_PACKAGE_ACTIONS</action> 1.32 + </button> 1.33 + </hbox> 1.34 + </vbox> 1.35 +</window> 1.36 +" 1.37 + 1.38 # Installed or not installed, that the question. 1.39 if [ -d /var/lib/tazpkg/installed/$PKG ]; then 1.40 PACKED_SIZE="" 1.41 @@ -155,6 +179,11 @@ 1.42 <action type=\"closewindow\">MIRRORED_PACKAGE_ACTIONS</action> 1.43 </button> 1.44 <button> 1.45 + <label>Files</label> 1.46 + <input file icon=\"tazpkg\"></input> 1.47 + <action type=\"launch\">LIST_FILES_MIRROR</action> 1.48 + </button> 1.49 + <button> 1.50 <input file icon=\"gtk-close\"></input> 1.51 <action type=\"closewindow\">MIRRORED_PACKAGE_ACTIONS</action> 1.52 </button>