Don't call updatedb if it is not necessary

This way we avoid showing deprecation messages that can worry users.