Remove unused target variable from rpmspec.c

Commit d2f48e93d3 moved the --target
argument to be global, but didn't completely remove the local target
variable from rpmspec.c, or the code that used it to trigger re-loading
the rpm configuration files (which is now handled by the global argument
callback in poptALL.c).
This commit is contained in:
Howard Johnson 2019-06-04 22:39:00 +01:00 committed by Panu Matilainen
parent 74033a3165
commit 733babe7cb
1 changed files with 0 additions and 7 deletions

View File

@ -17,7 +17,6 @@ enum modes {
static int mode = MODE_UNKNOWN;
static int source = RPMQV_SPECRPMS;
const char *target = NULL;
char *queryformat = NULL;
static struct poptOption specOptsTable[] = {
@ -65,12 +64,6 @@ int main(int argc, char *argv[])
if (rpmcliPipeOutput && initPipe())
exit(EXIT_FAILURE);
if (target) {
rpmFreeMacros(NULL);
rpmFreeRpmrc();
rpmReadConfigFiles(rpmcliRcfile, target);
}
ts = rpmtsCreate();
switch (mode) {