aboutsummaryrefslogtreecommitdiffstats
path: root/gendepslist2.cc
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-03-31 14:41:03 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-03-31 14:41:03 +0000
commit0e00ea5201dc638344db1c2200070cda150a4d40 (patch)
tree50ddafab262a7658f970e0daf9d26bfc4697483a /gendepslist2.cc
parent4a4469e87a3a3098cb4d9f54debac141dac48aff (diff)
downloadrpmtools-0e00ea5201dc638344db1c2200070cda150a4d40.tar
rpmtools-0e00ea5201dc638344db1c2200070cda150a4d40.tar.gz
rpmtools-0e00ea5201dc638344db1c2200070cda150a4d40.tar.bz2
rpmtools-0e00ea5201dc638344db1c2200070cda150a4d40.tar.xz
rpmtools-0e00ea5201dc638344db1c2200070cda150a4d40.zip
no_comment
Diffstat (limited to 'gendepslist2.cc')
-rw-r--r--gendepslist2.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gendepslist2.cc b/gendepslist2.cc
index 9709991..dee1a65 100644
--- a/gendepslist2.cc
+++ b/gendepslist2.cc
@@ -164,7 +164,6 @@ void getRequires(FD_t fd, int current_hdlist) {
hdlist2names[current_hdlist].insert(name);
sizes[name] = get_int(header, RPMTAG_SIZE);
- if (in(s_name, provided_by)) provided_by[s_name].push_back(name);
for (ITv p = l.begin(); p != l.end(); p++) {
((*p)[0] == '/' ? frequires : requires)[name].push_back(*p);
((*p)[0] == '/' ? all_frequires : all_requires).insert(*p);
@@ -182,6 +181,7 @@ void getProvides(FD_t fd, int current_hdlist) {
string s_name = get_name(header, RPMTAG_NAME);
string name = s_name + "-" + get_name(header, RPMTAG_VERSION) + "-" + get_name(header, RPMTAG_RELEASE);
+ if (in(s_name, provided_by)) provided_by[s_name].push_back(name);
vector<string> provides = get_info(header, RPMTAG_PROVIDES);
for (ITv p = provides.begin(); p != provides.end(); p++)