cookutils rev 739

cook: remove python and perl compiled files unconditionally
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed May 27 00:23:28 2015 +0300 (2015-05-27)
parents 0875b3f3ecc3
children 392edd0bcf98
files cook
line diff
     1.1 --- a/cook	Thu May 21 17:42:15 2015 +0300
     1.2 +++ b/cook	Wed May 27 00:23:28 2015 +0300
     1.3 @@ -492,18 +492,14 @@
     1.4  	status
     1.5  
     1.6  	# Remove Python .pyc and .pyo from packages.
     1.7 -	if echo "$PACKAGE $DEPENDS" | fgrep -q 'python'; then
     1.8 -		_n 'Removing Python compiled files...'
     1.9 -		find $fs -type f \( -name '*.pyc' -o -name '*.pyo' \) -delete 2>/dev/null
    1.10 -		status
    1.11 -	fi
    1.12 +	#_n 'Removing Python compiled files...'
    1.13 +	find $fs -type f \( -name '*.pyc' -o -name '*.pyo' \) -delete 2>/dev/null
    1.14 +	#status
    1.15  
    1.16  	# Remove Perl perllocal.pod and .packlist from packages.
    1.17 -	if echo "$DEPENDS" | fgrep -q 'perl'; then
    1.18 -		_n 'Removing Perl compiled files...'
    1.19 -		find $fs -type f \( -name 'perllocal.pod' -o -name '.packlist' \) -delete 2>/dev/null
    1.20 -		status
    1.21 -	fi
    1.22 +	#_n 'Removing Perl compiled files...'
    1.23 +	find $fs -type f \( -name 'perllocal.pod' -o -name '.packlist' \) -delete 2>/dev/null
    1.24 +	#status
    1.25  }
    1.26  
    1.27