diff options
author | Matt Wilson <msw@redhat.com> | 2001-01-18 22:48:20 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-01-18 22:48:20 +0000 |
commit | 480179f5d0c900df2be3593ff9b7e3525674d00e (patch) | |
tree | 1ed2b25a6b37cf220ad2c60e983d86fdd041b8f8 /utils | |
parent | 3d24d4f739cb5287824fd779b1f7dac3b54f62de (diff) | |
download | anaconda-480179f5d0c900df2be3593ff9b7e3525674d00e.tar.gz anaconda-480179f5d0c900df2be3593ff9b7e3525674d00e.tar.xz anaconda-480179f5d0c900df2be3593ff9b7e3525674d00e.zip |
obob in finding the order
Diffstat (limited to 'utils')
-rw-r--r-- | utils/genhdlist.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/utils/genhdlist.c b/utils/genhdlist.c index 13d01e9aa..a79b931aa 100644 --- a/utils/genhdlist.c +++ b/utils/genhdlist.c @@ -56,11 +56,11 @@ int getOrder (char * fn) while (p && *p && strncmp (fn, p, strlen(p))) { p = depOrder[++i]; } - + if (p) { - return i - 1; + return i; } - + return -1; } @@ -76,7 +76,7 @@ int onePass(FD_t outfd, const char * dirName, int cdNum) { struct stat sb; int_32 * fileSizes; int fileCount; - int order = 0; + int order = -1; sprintf(subdir, "%s/RedHat/RPMS", dirName); @@ -205,7 +205,7 @@ int onePass(FD_t outfd, const char * dirName, int cdNum) { } static void usage(void) { - fprintf(stderr, "genhdlist: genhdlist [--withnumbers] [--pkgorder <path>] [--hdlist <path>] <paths>+\n"); + fprintf(stderr, "genhdlist: genhdlist [--withnumbers] [--fileorder <path>] [--hdlist <path>] <paths>+\n"); exit(1); } |