diff options
author | jbj <devnull@localhost> | 2004-10-25 15:26:51 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2004-10-25 15:26:51 +0000 |
commit | 0f86e55aa4305dedfec636fb71bf3fce6bc23da0 (patch) | |
tree | 24463f1c63085bdbdf7b148426a8adc01ba7a0b4 /lib/tgi.c | |
parent | 3eb61f7a4ab9263ac95096357236f3e814b83b65 (diff) | |
download | rpm-0f86e55aa4305dedfec636fb71bf3fce6bc23da0.tar.gz rpm-0f86e55aa4305dedfec636fb71bf3fce6bc23da0.tar.bz2 rpm-0f86e55aa4305dedfec636fb71bf3fce6bc23da0.zip |
Wire ftsOpts globally.
CVS patchset: 7510
CVS date: 2004/10/25 15:26:51
Diffstat (limited to 'lib/tgi.c')
-rw-r--r-- | lib/tgi.c | 20 |
1 files changed, 3 insertions, 17 deletions
@@ -16,7 +16,6 @@ static const char * gitagstr = "packages"; static const char * gikeystr = NULL; static rpmtransFlags transFlags = 0; static rpmgiFlags giflags = 0; -static int ftsOpts = 0; static const char * queryFormat = NULL; static const char * defaultQueryFormat = @@ -70,22 +69,9 @@ static struct poptOption optionsTable[] = { { "queryformat", '\0', POPT_ARG_STRING, &queryFormat, 0, N_("use the following query format"), "QUERYFORMAT" }, - { "comfollow", '\0', POPT_BIT_SET, &ftsOpts, FTS_COMFOLLOW, - N_("follow command line symlinks"), NULL }, - { "logical", '\0', POPT_BIT_SET, &ftsOpts, FTS_LOGICAL, - N_("logical walk"), NULL }, - { "nochdir", '\0', POPT_BIT_SET, &ftsOpts, FTS_NOCHDIR, - N_("don't change directories"), NULL }, - { "nostat", '\0', POPT_BIT_SET, &ftsOpts, FTS_NOSTAT, - N_("don't get stat info"), NULL }, - { "physical", '\0', POPT_BIT_SET, &ftsOpts, FTS_PHYSICAL, - N_("physical walk"), NULL }, - { "seedot", '\0', POPT_BIT_SET, &ftsOpts, FTS_SEEDOT, - N_("return dot and dot-dot"), NULL }, - { "xdev", '\0', POPT_BIT_SET, &ftsOpts, FTS_XDEV, - N_("don't cross devices"), NULL }, - { "whiteout", '\0', POPT_BIT_SET, &ftsOpts, FTS_WHITEOUT, - N_("return whiteout information"), NULL }, + { NULL, '\0', POPT_ARG_INCLUDE_TABLE, rpmcliFtsPoptTable, 0, + N_("File tree walk options for fts(3):"), + NULL }, { NULL, '\0', POPT_ARG_INCLUDE_TABLE, rpmcliAllPoptTable, 0, N_("Common options for all rpm modes and executables:"), |