diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | gendepslist2.cc | 9 |
2 files changed, 6 insertions, 7 deletions
@@ -1,3 +1,7 @@ +2000-07-27 Pixel <pixel@mandrakesoft.com> + + * gendepslist2.cc: cleanup handling of choices in basesystem. + 2000-06-13 Pixel <pixel@mandrakesoft.com> * 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<string, set<string> > closure(const map<string, set<string> > &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<string> 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]; |