tazpkg diff tazpkg @ rev 139
rename save-config to repack-config, add list-config, update tazpkgbox
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jul 28 09:20:59 2008 +0000 (2008-07-28) |
parents | d63ee20f2953 |
children | ce9767408c1e |
line diff
1.1 --- a/tazpkg Sun Jul 27 11:17:50 2008 +0000 1.2 +++ b/tazpkg Mon Jul 28 09:20:59 2008 +0000 1.3 @@ -95,6 +95,7 @@ 1.4 info Print information about a package. 1.5 desc Print description of a package (if it exists). 1.6 list-files List the files installed with a package. 1.7 + list-config List the configuration files. 1.8 search Search for a package by pattern or name (options: -i|-l|-m). 1.9 search-file Search for file(s) in all installed packages files. 1.10 install Install a local (*.tazpkg) package (--forced to force). 1.11 @@ -104,7 +105,7 @@ 1.12 pack Pack an unpacked or prepared package tree. 1.13 recharge Recharge your packages.list from the mirror. 1.14 repack Creates a package archive from an installed package. 1.15 - save-config Creates a package archive with configuration files. 1.16 + repack-config Creates a package archive with configuration files. 1.17 upgrade Upgrade all installed and listed packages on the mirror. 1.18 block|unblock Block an installed package version or unblock it for upgrade. 1.19 get Download a package into the current directory. 1.20 @@ -1112,7 +1113,19 @@ 1.21 echo "$PACKAGE is extracted to : $DESTDIR" 1.22 echo "" 1.23 ;; 1.24 - save-config) 1.25 + list-config) 1.26 + # List configuration files installed. 1.27 + # 1.28 + echo "" 1.29 + echo -e "\033[1mConfiguration files" 1.30 + echo "================================================================================" 1.31 + for i in $INSTALLED/*/volatile.cpio.gz; do 1.32 + zcat $i | cpio -t | grep -v "[0-9]* blocks" 1.33 + done | sed 's|^|/|' | sort 1.34 + echo "================================================================================" 1.35 + echo "" 1.36 + ;; 1.37 + repack-config) 1.38 # Create SliTaz package archive from configuration files. 1.39 # 1.40 mkdir -p $TMP_DIR && cd $TMP_DIR