Skip to content

Commit

Permalink
use apt-get instead of aptitude
Browse files Browse the repository at this point in the history
aptitude segfault when using cross architecture. Also apt-get is much
faster. So, from now on use apt-get
  • Loading branch information
Thomas Lange committed Sep 14, 2017
1 parent 0139db8 commit 1372e5e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/updatebase
Expand Up @@ -32,11 +32,7 @@ $ROOTCMD apt-get $aptopt check
[ $? -ne 0 ] && $ROOTCMD apt-get $aptopt -f install </dev/null
$ROOTCMD dpkg -C
[ $? -ne 0 ] && yes '' | $ROOTCMD dpkg --configure -a
if [ -x $FAI_ROOT/usr/bin/aptitude ]; then
$ROOTCMD aptitude $aptopt -f -y full-upgrade </dev/null
else
$ROOTCMD apt-get $aptopt dist-upgrade < /dev/null
fi
$ROOTCMD apt-get $aptopt dist-upgrade < /dev/null
# update dpkg info which packages are available
tmp=$($ROOTCMD mktemp) || exit 88
$ROOTCMD apt-cache dumpavail > $FAI_ROOT/$tmp
Expand Down

0 comments on commit 1372e5e

Please sign in to comment.