Changeset 266 for freebsd-mgnt


Ignore:
Timestamp:
Jan 15, 2011, 6:20:15 PM (14 years ago)
Author:
Rick van der Zwet
Message:

Make sure pkgdb is consistent before we try to update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd-mgnt/system-update.sh

    r265 r266  
    124124fi
    125125
     126
    126127if [ -z "$NEWPORTS" ]; then
    127128  echo "# No ports to update"
    128129  echo "# All done, goodbye"
    129130  exit 0
     131fi
     132
     133# Check for broken pkgdb, else we have trouble during upgrades
     134if [ $USE_PORTMGNT = "portupgrade" ]; then
     135  pkgdb -a || exit 1
    130136fi
    131137
     
    178184    ;;
    179185  portmaster)
    180     portmaster -d --no-confirm --no-term-title --no-index-fetch -mBATCH=yes -a $NEWPORTS 
     186    portmaster -d --no-confirm --no-term-title --no-index-fetch -mBATCH=yes -a $NEWPORTS
    181187    ;;
    182188  *)
Note: See TracChangeset for help on using the changeset viewer.