From f3ea0a87be62670d780ee5b88d47cf73ccaf534c Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Sat, 5 Aug 2000 18:03:16 +0000 Subject: no_comment --- ChangeLog | 4 ++++ gendepslist2.cc | 19 ++++++++++--------- rpmtools.spec | 5 ++++- 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index bfeb9c3..b9e0162 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2000-08-03 Pixel + + * gendepslist2.cc: skip "rpmlib(..." dependencies + 2000-07-27 Pixel * gendepslist2.cc: cleanup handling of choices in basesystem. diff --git a/gendepslist2.cc b/gendepslist2.cc index 9207e0e..810400c 100644 --- a/gendepslist2.cc +++ b/gendepslist2.cc @@ -73,6 +73,9 @@ typedef vector::iterator ITv; typedef set::iterator ITs; typedef map >::iterator ITms; +bool start_with(const string &s, const char *prefix) { + return strncmp(s.c_str(), prefix, strlen(prefix)) == 0; +} @@ -164,9 +167,11 @@ void getRequires(FD_t fd, int current_hdlist) { hdlist2names[current_hdlist].insert(name); sizes[name] = get_int(header, RPMTAG_SIZE); - 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); + for (ITv p = l.begin(); p != l.end(); p++) { + if (!start_with(*p, "rpmlib(")) { + ((*p)[0] == '/' ? frequires : requires)[name].push_back(*p); + ((*p)[0] == '/' ? all_frequires : all_requires).insert(*p); + } } headerFree(header); } @@ -174,10 +179,6 @@ void getRequires(FD_t fd, int current_hdlist) { for (ITs p = all_frequires.begin(); p != all_frequires.end(); p++) fprovided_by[*p] = *(new vector); } -bool notfound(const string &s) { - return strncmp(s.c_str(), "NOTFOUND_", sizeof("NOTFOUND_") - 1) == 0; -} - void getProvides(FD_t fd, int current_hdlist) { map used; Header header; @@ -314,7 +315,7 @@ void printDepslist(ofstream *out1, ofstream *out2) { int l_best = 9999; for (ITs p = list.begin(); p != list.end(); p++) { - if (notfound(*p)) { + if (start_with(*p, "NOTFOUND_")) { list.erase(*p); continue; } @@ -359,7 +360,7 @@ void printDepslist(ofstream *out1, ofstream *out2) { verif(nb2hdlist[i], nb2hdlist[where[*k]], *p, *k); *out2 << where[*k]; } - } else if (notfound(*q)) { + } else if (start_with(*q, "NOTFOUND_")) { *out2 << " " << *q; } else { verif(nb2hdlist[i], nb2hdlist[where[*q]], *p, *q); diff --git a/rpmtools.spec b/rpmtools.spec index b93a3a3..5ab3699 100644 --- a/rpmtools.spec +++ b/rpmtools.spec @@ -1,5 +1,5 @@ %define name rpmtools -%define release 28mdk +%define release 29mdk # do not modify here, see Makefile in the CVS %define version 1.1 @@ -59,6 +59,9 @@ rm -rf $RPM_BUILD_ROOT /usr/bin/genfilelist %changelog +* Thu Aug 3 2000 Pixel 1.1-29mdk +- skip "rpmlib(..." dependencies + * Thu Jul 27 2000 Pixel 1.1-28mdk - fix handling of choices in basesystem (hdlist -1) -- cgit v1.2.1