Skip to content

Commit

Permalink
Merge pull request #493 from vmware/topic/okurth/remove-special-setop…
Browse files Browse the repository at this point in the history
…t-conf

remove special case --setopt=tdnf.conf=
  • Loading branch information
oliverkurth authored Sep 11, 2024
2 parents a084f56 + 0241263 commit bc1bc4e
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions common/setopt.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,6 @@ AddSetOpt(
dwError = GetOptionAndValue(pszOptArg, &pCmdOpt);
BAIL_ON_TDNF_ERROR(dwError);

if(!strcmp(pCmdOpt->pszOptName, "tdnf.conf"))
{
TDNF_SAFE_FREE_MEMORY(pCmdArgs->pszConfFile);
dwError = TDNFAllocateString(
pCmdOpt->pszOptValue,
&pCmdArgs->pszConfFile);
BAIL_ON_TDNF_ERROR(dwError);
}

dwError = AddSetOptWithValues(pCmdArgs, pCmdOpt->pszOptName, pCmdOpt->pszOptValue);
BAIL_ON_TDNF_ERROR(dwError);

Expand Down

0 comments on commit bc1bc4e

Please sign in to comment.