Fixing pkgrepo state