tags 53527 + patch quit This is one way to fix it. Another would have been to call `package--alist' instead of reference `package-alist' in `package-reinstall'. ...but that wouldn't have been an optimization, since `package-install' inevitably calls `package--archives-initialize' anyway. This patch just makes it happen earlier.