tazwok rev 546
Fix: make a sed pattern more precise in remove_src()
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Fri Dec 09 20:46:47 2011 +0100 (2011-12-09) |
parents | ee954432359e |
children | f2d78e18fc10 |
files | tazwok |
line diff
1.1 --- a/tazwok Sat Nov 26 16:56:36 2011 +0100 1.2 +++ b/tazwok Fri Dec 09 20:46:47 2011 +0100 1.3 @@ -231,7 +231,7 @@ 1.4 # Don't remove sources if a package uses src variable in its 1.5 # genpkg_rules: it maybe needs something inside. 1.6 for i in $PACKAGE $(look_for_rwanted); do 1.7 - sed -n '/^genpkg_rules\(\)/','/}/'p $WOK/$i/receipt | \ 1.8 + sed -n '/^genpkg_rules\(\)/','/^}/'p $WOK/$i/receipt | \ 1.9 fgrep -q '$src' && tazwok_warning "Sources will not be removed \ 1.10 because $i uses \$src in its receipt." && return 1.11 done