diff options
author | jbj <devnull@localhost> | 2001-07-17 03:03:14 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2001-07-17 03:03:14 +0000 |
commit | bad8c7a9b243a1f72338dc04daba56a944149716 (patch) | |
tree | 72c89e45f3722761afae23b7c7279bdc0c099202 /popt/poptconfig.c | |
parent | ecfb46adaaeff044c1a44602b141ca885d351c06 (diff) | |
download | librpm-tizen-bad8c7a9b243a1f72338dc04daba56a944149716.tar.gz librpm-tizen-bad8c7a9b243a1f72338dc04daba56a944149716.tar.bz2 librpm-tizen-bad8c7a9b243a1f72338dc04daba56a944149716.zip |
- fix: _smp_flags macro broken.
- python: bind rhnUnload differently.
- fix: rescusitate --querytags.
- fix: short aliases broken (#49213).
CVS patchset: 4949
CVS date: 2001/07/17 03:03:14
Diffstat (limited to 'popt/poptconfig.c')
-rw-r--r-- | popt/poptconfig.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/popt/poptconfig.c b/popt/poptconfig.c index c1032659e..1801db63e 100644 --- a/popt/poptconfig.c +++ b/popt/poptconfig.c @@ -33,15 +33,17 @@ static void configLine(poptContext con, char * line) while (*line != '\0' && isspace(*line)) line++; if (*line == '\0') return; opt = line; - if (opt[0] == '-' && opt[1] == '-') - item->option.longName = opt + 2; - else if (opt[0] == '-' && !opt[2]) - item->option.shortName = opt[1]; - while (*line == '\0' || !isspace(*line)) line++; *line++ = '\0'; + while (*line != '\0' && isspace(*line)) line++; if (*line == '\0') return; + + if (opt[0] == '-' && opt[1] == '-') + item->option.longName = opt + 2; + else if (opt[0] == '-' && opt[2] == '\0') + item->option.shortName = opt[1]; + if (poptParseArgvString(line, &item->argc, &item->argv)) return; /*@-modobserver@*/ |