When building updates, try to get the order right, i.e. build
packages with dependencies first.