Handling various package index rebuild scenarios