Changes between Version 6 and Version 7 of Scripts/testport_script
- Timestamp:
- Apr 24, 2012, 10:40:27 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Scripts/testport_script
v6 v7 191 191 if [[ $# -eq 0 ]]; then 192 192 if [[ $clean_all -eq 1 ]]; then 193 ( port -f clean --all installed 2>/dev/null ) || true193 [[ $(port installed | wc -l) -gt 1 ]] && port -f clean --all installed 194 194 exit 195 195 elif [[ $update -eq 1 ]]; then 196 port -f clean --all installed196 [[ $(port installed | wc -l) -gt 1 ]] && port -f clean --all installed 197 197 port selfupdate 198 198 port outdated 199 ( port upgrade -R -u outdated 2>/dev/null ) || true199 [[ $(port outdated | wc -l) -gt 1 ]] && port upgrade -R -u outdated 200 200 exit 201 201 else … … 251 251 if [[ -x "${MP_PREFIX}/bin/port" ]]; then 252 252 if [[ $clean_all -eq 1 ]]; then 253 ( port -f clean --all installed 2>/dev/null ) || true253 [[ $(port installed | wc -l) -gt 1 ]] && port -f clean --all installed 254 254 else 255 ( port -f clean --work "$@" 2>/dev/null ) || true255 [[ $(port installed "$@" | wc -l) -gt 1 ]] && port -f clean --work "$@" 256 256 fi 257 257 fi … … 261 261 262 262 if [[ -x "${MP_PREFIX}/bin/port" ]]; then 263 ( port -f uninstall installed 2>/dev/null ) || true263 [[ $(port installed | wc -l) -gt 1 ]] && port -f uninstall installed 264 264 fi 265 265 … … 301 301 port selfupdate 302 302 port outdated 303 ( port upgrade -R -u outdated 2>/dev/null ) || true303 [[ $(port outdated | wc -l) -gt 1 ]] && port upgrade -R -u outdated 304 304 fi 305 305 306 306 307 307 if [[ $remove -eq 1 ]]; then 308 port -f clean --all "$@"309 port -f -v uninstall "$@"308 [[ $(port installed "$@" | wc -l) -gt 1 ]] && port -f clean --all "$@" 309 [[ $(port installed "$@" | wc -l) -gt 1 ]] && port -f -v uninstall "$@" 310 310 fi 311 311