tazpkg rev 499

tazpkg: small fix to clean-up
author Christophe Lincoln <pankso@slitaz.org>
date Thu Jun 02 02:58:52 2011 +0200 (2011-06-02)
parents 59f35ca83c14
children dacdbb6d3de7
files Makefile tazpkg
line diff
     1.1 --- a/Makefile	Sat May 28 21:04:24 2011 +0200
     1.2 +++ b/Makefile	Thu Jun 02 02:58:52 2011 +0200
     1.3 @@ -28,10 +28,9 @@
     1.4  		fi; \
     1.5  		if [ -f "po/tazpkg-notify/$$l.po" ]; then; \
     1.6  			echo -n "Updating $$l po file."; \
     1.7 -			msgmerge -U po/tazpkg-notify/$$l.po \
     1.8 -				po/tazpkg-notify/tazpkg-notify.pot; \
     1.9 +			msgmerge -U po/tazpkg-notify/$$l.po po/tazpkg-notify/tazpkg-notify.pot; \
    1.10  		fi; \
    1.11 -	done;
    1.12 +	done
    1.13  
    1.14  msgfmt:
    1.15  	@for l in $(LINGUAS); do \
     2.1 --- a/tazpkg	Sat May 28 21:04:24 2011 +0200
     2.2 +++ b/tazpkg	Thu Jun 02 02:58:52 2011 +0200
     2.3 @@ -2877,16 +2877,14 @@
     2.4  		# Remove all downloaded packages.
     2.5  		#
     2.6  		check_root
     2.7 -		files=`ls -1 $CACHE_DIR | wc -l`
     2.8 +		files=$(find $CACHE_DIR -name *.tazpkg | wc -l)
     2.9  		echo ""
    2.10  		echo -e "\033[1m`gettext \"Clean cache:\"`\033[0m $CACHE_DIR"
    2.11  		separator
    2.12 -		gettext "Cleaning cache directory..."; echo
    2.13 +		gettext "Cleaning cache directory..."
    2.14  		rm -rf $CACHE_DIR/*
    2.15 -		status
    2.16 -		separator
    2.17 -		eval_gettext "\$files file(s) removed from cache."; echo
    2.18 -		echo "" ;;
    2.19 +		status && separator
    2.20 +		eval_gettext "\$files file(s) removed from cache."; echo -e "\n" ;;
    2.21  	list-undigest)
    2.22  		# list undigest URLs.
    2.23  		#