diff options
author | jbj <devnull@localhost> | 2003-04-16 17:48:04 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2003-04-16 17:48:04 +0000 |
commit | c243ab099b4429a20d1ac00baa3eeae206be4365 (patch) | |
tree | 2e12bd05c4e85ca9203582baa74fdfabae5222b9 /tools/rpmsort.c | |
parent | 14165bc5582af0306bff6bb42b7c76305bec5abf (diff) | |
download | rpm-c243ab099b4429a20d1ac00baa3eeae206be4365.tar.gz rpm-c243ab099b4429a20d1ac00baa3eeae206be4365.tar.bz2 rpm-c243ab099b4429a20d1ac00baa3eeae206be4365.zip |
- resurrect manifests, RPMRC_NOTFOUND returned by readLead().
CVS patchset: 6752
CVS date: 2003/04/16 17:48:04
Diffstat (limited to 'tools/rpmsort.c')
-rw-r--r-- | tools/rpmsort.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/tools/rpmsort.c b/tools/rpmsort.c index f13d24f60..4fa605630 100644 --- a/tools/rpmsort.c +++ b/tools/rpmsort.c @@ -163,18 +163,13 @@ restart: rc = rpmReadPackageFile(ts, fd, *fnp, &h); Fclose(fd); - if (rc == 2) { - numFailed++; *fnp = NULL; - continue; - } - - if (rc == 0) { + if (rc == RPMRC_OK) { rc = rpmtsAddInstallElement(ts, h, (fnpyKey)fileName, 0, NULL); h = headerFree(h); continue; } - if (rc != 1) { + if (rc != RPMRC_NOTFOUND) { rpmMessage(RPMMESS_ERROR, _("%s cannot be installed\n"), *fnp); numFailed++; *fnp = NULL; break; |