From 2157f729ad44c194cbd2c6d1f1bfa9e21867d095 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 27 Jul 2000 18:01:30 +0000 Subject: no_comment --- ChangeLog | 4 ++++ gendepslist2.cc | 9 ++------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5c7f246..bfeb9c3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2000-07-27 Pixel + + * gendepslist2.cc: cleanup handling of choices in basesystem. + 2000-06-13 Pixel * gendepslist2.cc: change fclose to pclose (thanks to diablero) diff --git a/gendepslist2.cc b/gendepslist2.cc index f132dd2..9207e0e 100644 --- a/gendepslist2.cc +++ b/gendepslist2.cc @@ -260,7 +260,7 @@ map > closure(const map > &names) { //}; inline int verif(int npack, int ndep, const string &package, const string &dep) { - if (ndep > npack) cerr << package << " requires " << dep << " which is not in the same hdlist " << ndep << " > " << npack << "\n"; + if (ndep > npack && !(ndep == 0 && npack == -1)) cerr << package << " requires " << dep << " which is not in the same hdlist " << ndep << " > " << npack << "\n"; return ndep; } @@ -298,19 +298,14 @@ void printDepslist(ofstream *out1, ofstream *out2) { list.insert(name2fullname["setup"]); nb_deps_done[name2fullname["setup"]] = 10; add(list, names[name2fullname["basesystem"]]); list.insert(name2fullname["basesystem"]); + for (ITs p = list.begin(); p != list.end(); p++) { if (p->find('|') != string::npos) { list.erase(*p); - vector l = split('|', *p); - for (ITv k = l.begin(); k != l.end(); k++) { - list.insert(*k); - add(list, names[*k]); - } } } for (ITs p = list.begin(); p != list.end(); p++) { hdlist2names[0].erase(*p); - if (p->find('|') != string::npos) list.erase(*p); } } else { list = hdlist2names[i]; -- cgit v1.2.1