lib/update: horribly broken checking logic