spk rev 33

spk-add modifiers: dont add package to itsef
author Christophe Lincoln <pankso@slitaz.org>
date Tue May 15 20:44:37 2012 +0200 (2012-05-15)
parents bb5a37f13ad6
children 48522fb4d101
files spk-add
line diff
     1.1 --- a/spk-add	Tue May 15 20:32:41 2012 +0200
     1.2 +++ b/spk-add	Tue May 15 20:44:37 2012 +0200
     1.3 @@ -153,7 +153,12 @@
     1.4  						zcat $pkg/volatile.cpio.gz | cpio -t --quiet | \
     1.5  						grep -q "^${file#/}$" && continue
     1.6  					fi
     1.7 -					echo "$package_name" >> $pkg/modifiers
     1.8 +					base_name=$(basename $pkg)
     1.9 +					if [ "$package_name" != "$base_name" ]; then
    1.10 +						[ "$debug" ] && \
    1.11 +							echo "DEBUG: Adding $base_name to: $pkg/modifiers"
    1.12 +						echo "$package_name" >> $pkg/modifiers
    1.13 +					fi
    1.14  				fi
    1.15  			done
    1.16  		done
    1.17 @@ -161,6 +166,7 @@
    1.18  
    1.19  	cd $TMP_DIR || exit 1
    1.20  	cp receipt files.list $package_dir
    1.21 +
    1.22  	# Copy the description if found.
    1.23  	[ -f "description.txt" ] && cp description.txt $package_dir
    1.24