tazpkg rev 709
tazpkg: add --newconf && --nodeps (like in spk-add)
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Sun Dec 14 15:08:25 2014 +0000 (2014-12-14) |
parents | e19ff346ea9a |
children | 58f001f8e2bc |
files | tazpkg |
line diff
1.1 --- a/tazpkg Sat Dec 13 17:15:22 2014 +0000 1.2 +++ b/tazpkg Sun Dec 14 15:08:25 2014 +0000 1.3 @@ -785,7 +785,7 @@ 1.4 if grep -q ^pre_install $ROOT$INSTALLED/$PACKAGE/receipt; then 1.5 pre_install $ROOT 1.6 fi 1.7 - if [ -n "$CONFIG_FILES" ]; then 1.8 + if [ -n "$CONFIG_FILES" ] && ! [ "$newconf" ]; then 1.9 # save 'official' configuration files 1.10 action 'Saving configuration files...' 1.11 for i in $CONFIG_FILES; do 1.12 @@ -1034,7 +1034,7 @@ 1.13 answer=$? 1.14 newline 1.15 fi 1.16 - if [ $answer = 0 ]; then 1.17 + if [ $answer = 0 ] && ! [ "$nodeps" ]; then 1.18 for pkgorg in $DEPENDS; do 1.19 pkg=$(equivalent_pkg $pkgorg $1) 1.20 if [ ! -d "$1$INSTALLED/$pkg" ]; then