Skip to content

Commit

Permalink
apply vars to repo name and gpgkey
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Silhan committed Nov 7, 2016
1 parent 25b5307 commit bf4826d
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions client/repolist.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,33 @@ TDNFLoadReposFromFile(
&pRepo->pszPass);
BAIL_ON_TDNF_ERROR(dwError);

if(pRepo->nEnabled)
{
if(pRepo->pszBaseUrl)
{
dwError = TDNFConfigReplaceVars(pTdnf, &pRepo->pszBaseUrl);
BAIL_ON_TDNF_ERROR(dwError);
}

if(pRepo->pszMetaLink)
{
dwError = TDNFConfigReplaceVars(pTdnf, &pRepo->pszMetaLink);
BAIL_ON_TDNF_ERROR(dwError);
}

if(pRepo->pszName)
{
dwError = TDNFConfigReplaceVars(pTdnf, &pRepo->pszName);
BAIL_ON_TDNF_ERROR(dwError);
}

if(pRepo->pszUrlGPGKey)
{
dwError = TDNFConfigReplaceVars(pTdnf, &pRepo->pszUrlGPGKey);
BAIL_ON_TDNF_ERROR(dwError);
}
}

dwError = TDNFRepoGetKeyValue(
pKeyFile,
pszRepo,
Expand Down

0 comments on commit bf4826d

Please sign in to comment.