# HG changeset patch # User Christophe Lincoln # Date 1337107477 -7200 # Node ID fca271e55b69f6b5972c0ac85f7987d7d201bdf0 # Parent bb5a37f13ad68c362fbd36bddadb244547c96211 spk-add modifiers: dont add package to itsef diff -r bb5a37f13ad6 -r fca271e55b69 spk-add --- a/spk-add Tue May 15 20:32:41 2012 +0200 +++ b/spk-add Tue May 15 20:44:37 2012 +0200 @@ -153,7 +153,12 @@ zcat $pkg/volatile.cpio.gz | cpio -t --quiet | \ grep -q "^${file#/}$" && continue fi - echo "$package_name" >> $pkg/modifiers + base_name=$(basename $pkg) + if [ "$package_name" != "$base_name" ]; then + [ "$debug" ] && \ + echo "DEBUG: Adding $base_name to: $pkg/modifiers" + echo "$package_name" >> $pkg/modifiers + fi fi done done @@ -161,6 +166,7 @@ cd $TMP_DIR || exit 1 cp receipt files.list $package_dir + # Copy the description if found. [ -f "description.txt" ] && cp description.txt $package_dir