fixed wrong parameters
authorStefan Schubert <schubi@suse.de>
Wed, 30 Jan 2008 15:16:15 +0000 (15:16 +0000)
committerStefan Schubert <schubi@suse.de>
Wed, 30 Jan 2008 15:16:15 +0000 (15:16 +0000)
zypp/sat/SATResolver.cc

index af14e4c42c5940c8cb653cc2ad33ef6f4c9e3e3e..495b3a9e0f3f8b43760bdee7e317ab52d626376f 100644 (file)
@@ -790,14 +790,14 @@ SATResolver::problems ()
                                    problemSolution->addDescription (description);
                                    gotone = 1;
                                }
-                               if (!solv->allowarchchange && s->name == sd->name && s->arch != sd->arch && policy_illegal_archchange(pool, s, sd))
+                               if (!solv->allowarchchange && s->name == sd->name && s->arch != sd->arch && policy_illegal_archchange(solv, s, sd))
                                {
                                    string description = str::form (_("architecture change of %s to %s"), solvable2str(pool, s), solvable2str(pool, sd));
                                    MIL << description << endl;
                                    problemSolution->addDescription (description);
                                    gotone = 1;
                                }
-                               if (!solv->allowvendorchange && s->name == sd->name && s->vendor != sd->vendor && policy_illegal_vendorchange(pool, s, sd))
+                               if (!solv->allowvendorchange && s->name == sd->name && s->vendor != sd->vendor && policy_illegal_vendorchange(solv, s, sd))
                                {
                                    string description = str::form (_("vendor change of [%s]%s to [%s]%s") , id2str(pool, s->vendor) , solvable2str(pool, s),
                                                                      string(sd->vendor ?  id2str(pool, sd->vendor) : " (no vendor) ").c_str(),  solvable2str(pool, sd));