tazpkg rev 210
tazpkgbox: display package config files
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Nov 23 20:44:37 2008 +0000 (2008-11-23) |
parents | 7b6eebb50244 |
children | 2f8faaf570c5 |
files | lib/tazpkgbox/package_infos tazpkg tazpkgbox |
line diff
1.1 --- a/lib/tazpkgbox/package_infos Sun Nov 23 20:17:42 2008 +0000 1.2 +++ b/lib/tazpkgbox/package_infos Sun Nov 23 20:44:37 2008 +0000 1.3 @@ -17,6 +17,7 @@ 1.4 Sug*) $0 list_packages $SUGGESTED;; 1.5 Dep*) $0 list_packages $DEPENDS;; 1.6 Mod*) $0 list_packages $(xargs echo < /var/lib/tazpkg/installed/$3/modifiers);; 1.7 + Con*) tazpkgbox list_config $3;; 1.8 Ver*) xterm -T "$3 receipt (q to quit)" -e "cat $RECEIPT | less";; 1.9 esac 1.10 exit 0
2.1 --- a/tazpkg Sun Nov 23 20:17:42 2008 +0000 2.2 +++ b/tazpkg Sun Nov 23 20:44:37 2008 +0000 2.3 @@ -1338,7 +1338,9 @@ 2.4 # 2.5 if [ "$2" = "--box" ]; then 2.6 mkdir -p $TMP_DIR && cd $TMP_DIR 2.7 - for i in $INSTALLED/*/volatile.cpio.gz; do 2.8 + FILES="$INSTALLED/*/volatile.cpio.gz" 2.9 + [ -n "$3" ] && FILES="$INSTALLED/$3/volatile.cpio.gz" 2.10 + for i in $FILES; do 2.11 zcat $i | cpio -id > /dev/null 2.12 find * -type f 2>/dev/null | while read file; do 2.13 if [ ! -e /$file ]; then
3.1 --- a/tazpkgbox Sun Nov 23 20:17:42 2008 +0000 3.2 +++ b/tazpkgbox Sun Nov 23 20:44:37 2008 +0000 3.3 @@ -73,30 +73,36 @@ 3.4 </window> 3.5 ' 3.6 3.7 -export LIST_CONFIG_FILES=' 3.8 -<window title="configuration files" icon-name="system-file-manager"> 3.9 +FILES="$2" 3.10 +[ "$1" = "list_config" ] || FILES="" 3.11 +export LIST_CONFIG_FILES=" 3.12 +<window title=\"configuration files\" icon-name=\"system-file-manager\"> 3.13 <vbox> 3.14 - <tree exported_column="5"> 3.15 + <tree exported_column=\"5\"> 3.16 <width>560</width><height>160</height> 3.17 <variable>CONF_FILE</variable> 3.18 <label>Access | User | Group | Size | Update Date | Name</label> 3.19 - <input>tazpkg list-config --box</input> 3.20 - <action>leafpad $CONF_FILE</action> 3.21 + <input>tazpkg list-config --box $FILES</input> 3.22 + <action>leafpad \$CONF_FILE</action> 3.23 </tree> 3.24 <hbox> 3.25 - <text wrap="false"> 3.26 + <text wrap=\"false\"> 3.27 <label> 3.28 -"Only files with Update Date have been modified after package installation" 3.29 +\"Only files with Update Date have been modified after package installation\" 3.30 </label> 3.31 </text> 3.32 <button> 3.33 - <input file icon="gtk-close"></input> 3.34 - <action type="closewindow">INSTALLED_PACKAGE_ACTIONS</action> 3.35 + <input file icon=\"gtk-close\"></input> 3.36 + <action type=\"closewindow\">INSTALLED_PACKAGE_ACTIONS</action> 3.37 </button> 3.38 </hbox> 3.39 </vbox> 3.40 </window> 3.41 -' 3.42 +" 3.43 +if [ "$1" = "list_config" ]; then 3.44 + gtkdialog --center --program=LIST_CONFIG_FILES >/dev/null 3.45 + exit 0 3.46 +fi 3.47 3.48 export SETUP_UNDIGEST=' 3.49 <window title="undigest mirrors" icon-name="tazpkg">