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:
parent
74033a3165
commit
733babe7cb
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue