Skip to content

Commit

Permalink
execute aptitude only if it's available
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Lange committed Jul 18, 2016
1 parent 83977b4 commit e571e81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/updatebase
Expand Up @@ -32,7 +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
$ROOTCMD aptitude $aptopt -f -y full-upgrade </dev/null
[ -x $FAI_ROOT/usr/bin/aptitude ] && $ROOTCMD aptitude $aptopt -f -y full-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 e571e81

Please sign in to comment.