add expand_repo_def needed by states pkgrepo.managed

add expand_repo_def function which is needed by states pkgrepo.managed