spk rev 45

Removed modifers from spk-rm
author Christian Mesh <meshca@clarkson.edu>
date Tue May 15 22:18:01 2012 -0500 (2012-05-15)
parents 00c1009ee71b
children a569934d1031
files spk-rm
line diff
     1.1 --- a/spk-rm	Tue May 15 22:16:07 2012 -0500
     1.2 +++ b/spk-rm	Tue May 15 22:18:01 2012 -0500
     1.3 @@ -130,29 +130,6 @@
     1.4  			fi
     1.5  		done
     1.6  	fi
     1.7 -
     1.8 -	# Handle modified packages
     1.9 -	modified=$(cd $installed; grep -sl ^$pkg$ */modifiers)
    1.10 -	if [ "$modified" ]; then
    1.11 -		for i in $modified; do
    1.12 -			gettext "Removed package  :"; boldify " $pkg"
    1.13 -			gettext "Modified package :"; colorize " ${i%/modifiers}" 31
    1.14 -			# Remove package from the modifiers list
    1.15 -			sed -i "/^${pkg}$/"d $installed/$i
    1.16 -			# Reinstall modified packages
    1.17 -			if [ "$confirm" ]; then
    1.18 -				gettext "Confirm reinstallation of:"
    1.19 -				echo -n " ${i%/modifiers}"
    1.20 -				if ! confirm; then
    1.21 -					gettext "Reinstallation cancelled"; newline
    1.22 -					newline && continue
    1.23 -				else
    1.24 -					gettext "Reinsalling modified package..."; newline
    1.25 -				fi
    1.26 -			fi
    1.27 -			spk-add ${i%/modifiers} --forced --root=$root
    1.28 -		done
    1.29 -	fi
    1.30  }
    1.31  
    1.32  #