diff options
author | jbj <devnull@localhost> | 2000-07-09 23:10:25 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2000-07-09 23:10:25 +0000 |
commit | db3190176b4615621024fdf2cfaad406ba11aa83 (patch) | |
tree | 48728dd20b5647795c524cee7d85168f37123132 /build/reqprov.c | |
parent | 10eb9f2c5d4736cd0ca71e5e25c0f3e97de3a4e9 (diff) | |
download | librpm-tizen-db3190176b4615621024fdf2cfaad406ba11aa83.tar.gz librpm-tizen-db3190176b4615621024fdf2cfaad406ba11aa83.tar.bz2 librpm-tizen-db3190176b4615621024fdf2cfaad406ba11aa83.zip |
- prefix payload paths with "./", otherwise "/" can't be represented.
- fix: compressFilelist broke when fed '/'.
- fix: typo in --last popt alias (#12690).
- fix: clean file paths before performing -qf (#12493).
CVS patchset: 3930
CVS date: 2000/07/09 23:10:25
Diffstat (limited to 'build/reqprov.c')
-rw-r--r-- | build/reqprov.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/build/reqprov.c b/build/reqprov.c index 529a40097..b90110255 100644 --- a/build/reqprov.c +++ b/build/reqprov.c @@ -23,7 +23,7 @@ int addReqProv(/*@unused@*/ Spec spec, Header h, versiontag = RPMTAG_PROVIDEVERSION; flagtag = RPMTAG_PROVIDEFLAGS; } else if (flag & RPMSENSE_OBSOLETES) { - nametag = RPMTAG_OBSOLETES; + nametag = RPMTAG_OBSOLETENAME; versiontag = RPMTAG_OBSOLETEVERSION; flagtag = RPMTAG_OBSOLETEFLAGS; } else if (flag & RPMSENSE_CONFLICTS) { @@ -63,9 +63,9 @@ int addReqProv(/*@unused@*/ Spec spec, Header h, headerGetEntry(h, versiontag, NULL, (void **) &versions, NULL); headerGetEntry(h, flagtag, NULL, (void **) &flags, NULL); } - if (indextag) { + if (indextag) headerGetEntry(h, indextag, NULL, (void **) &indexes, NULL); - } + while (len > 0) { len--; if (strcmp(names[len], name)) @@ -100,10 +100,8 @@ int addReqProv(/*@unused@*/ Spec spec, Header h, headerAddOrAppendEntry(h, flagtag, RPM_INT32_TYPE, &flag, 1); } - if (indextag) { - headerAddOrAppendEntry(h, indextag, - RPM_INT32_TYPE, &index, 1); - } + if (indextag) + headerAddOrAppendEntry(h, indextag, RPM_INT32_TYPE, &index, 1); return 0; } |