This is kinda hacky and encodes knowledge of autoupdate stuff in an odd place. I think thats OK, since its a very internal function, and I can't think of anything better. But I think this deserves an XXX and comment noting the hackiness.