tazpkg rev 142

Rework Config files...
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jul 29 08:53:01 2008 +0000 (2008-07-29)
parents ce9767408c1e
children db7e865c0a11
files tazpkg tazpkgbox
line diff
     1.1 --- a/tazpkg	Mon Jul 28 19:26:09 2008 +0000
     1.2 +++ b/tazpkg	Tue Jul 29 08:53:01 2008 +0000
     1.3 @@ -1121,10 +1121,10 @@
     1.4  			for i in $INSTALLED/*/volatile.cpio.gz; do 
     1.5  				zcat $i | cpio -id > /dev/null
     1.6  				find * -type f | while read file; do
     1.7 -					echo -n "$(stat -c "%A|%U|%G|%s|" /$file)"
     1.8 +					echo -n "/$file|"
     1.9  					cmp $file /$file > /dev/null 2>&1 || \
    1.10  						echo -n "$(stat -c "%.16y" /$file)"
    1.11 -					echo "|/$file"
    1.12 +					stat -c "|%A|%s|%U|%G" /$file
    1.13  				done
    1.14  				rm -rf *
    1.15  			done | sed 's|  |  /|'
     2.1 --- a/tazpkgbox	Mon Jul 28 19:26:09 2008 +0000
     2.2 +++ b/tazpkgbox	Tue Jul 29 08:53:01 2008 +0000
     2.3 @@ -72,26 +72,30 @@
     2.4  </window>
     2.5  '
     2.6  
     2.7 -export LIST_CONFIG_FILES="
     2.8 -<window title=\"configuration files\" icon-name=\"system-file-manager\">
     2.9 +export LIST_CONFIG_FILES='
    2.10 +<window title="configuration files" icon-name="system-file-manager">
    2.11    <vbox>
    2.12  	<tree>
    2.13  		<width>630</width><height>160</height>
    2.14 -		<label>Access | User | Group | Size | Update Date | Name</label>
    2.15 +		<variable>CONF_FILE</variable>
    2.16 +		<label>Name | Update Date | Access | Size | User | Group</label>
    2.17  		<input>tazpkg list-config --box</input>
    2.18 +		<action>leafpad $CONF_FILE</action>
    2.19  	</tree>
    2.20  	<hbox>
    2.21 -		<text wrap=\"false\">
    2.22 -			<label>\"Only files with Update Date have been modified after package installation\"</label>
    2.23 +		<text wrap="false">
    2.24 +			<label>
    2.25 +"Only files with Update Date have been modified after package installation"
    2.26 +			</label>
    2.27  		</text>
    2.28  		<button>
    2.29 -			<input file icon=\"gtk-close\"></input>
    2.30 -			<action type=\"closewindow\">INSTALLED_PACKAGE_ACTIONS</action>
    2.31 +			<input file icon="gtk-close"></input>
    2.32 +			<action type="closewindow">INSTALLED_PACKAGE_ACTIONS</action>
    2.33  		</button>
    2.34  	</hbox>
    2.35    </vbox>
    2.36  </window>
    2.37 -"
    2.38 +'
    2.39  
    2.40  # Main dialog
    2.41  export TAZPKG_DIALOG='
    2.42 @@ -345,7 +349,7 @@
    2.43  				</button>
    2.44  			</hbox>
    2.45  		</frame>
    2.46 -		<frame Files path, configuration files and packages check>
    2.47 +		<frame Files path>
    2.48  			<hbox>
    2.49  				<text use-markup="true" width-chars="60">
    2.50  					<label>
    2.51 @@ -353,17 +357,24 @@
    2.52  					</label>
    2.53  				</text>
    2.54  			</hbox>
    2.55 -			<hbox>
    2.56 +		</frame>
    2.57 +		<hbox>
    2.58 +			<frame Configuration files>
    2.59 +				<hbox>
    2.60  				<button>
    2.61  					<label>Repack config</label>
    2.62  					<input file icon="edit-redo"></input>
    2.63 -					<action>xterm -fa MiscFixed -fs 11 -bg gray93 -fg black -T "Repack configs" -geometry 80x25+120+120 -e "tazpkg repack-config ; sleep 2" 2> /dev/null</action>
    2.64 +					<action>xterm -fa MiscFixed -fs 11 -bg gray93 -fg black -T "Repack configs" -geometry 80x25+120+120 -e "tazpkg repack-config ; sleep 5" 2> /dev/null</action>
    2.65  				</button>
    2.66  				<button>
    2.67  					<label>Config Files</label>
    2.68  					<input file icon="tazpkg"></input>
    2.69  					<action type="launch">LIST_CONFIG_FILES</action>
    2.70  				</button>
    2.71 +				</hbox>
    2.72 +			</frame>
    2.73 +			<frame Packages check>
    2.74 +			<hbox>
    2.75  				<button>
    2.76  					<label>Quick check</label>
    2.77  					<input file icon="go-next"></input>
    2.78 @@ -374,8 +385,9 @@
    2.79  					<input file icon="go-next"></input>
    2.80  					<action>xterm -fa MiscFixed -fs 11 -bg gray93 -fg black -T "Check packages (q to quit)" -geometry 80x25+120+120 -e "tazpkg check --full | less " 2> /dev/null</action>
    2.81  				</button>
    2.82 -			</hbox>
    2.83 -		</frame>
    2.84 +				</hbox>
    2.85 +			</frame>
    2.86 +		</hbox>
    2.87  	</vbox>
    2.88  
    2.89  	</notebook>