fixing some bugs:
authorStephan Kulow <coolo@suse.de>
Fri, 12 Oct 2007 11:45:43 +0000 (11:45 +0000)
committerStephan Kulow <coolo@suse.de>
Fri, 12 Oct 2007 11:45:43 +0000 (11:45 +0000)
  - remove the original package on upgrade, not the new
    one
  - always set i686 when no arch is set (as required)
  - handle "install" as capability not as name
  - handle different kind of solvables in install
  - install locale solvables into an extra channel

src/solver.c

index ac7359b..2ca6498 100644 (file)
@@ -2281,9 +2281,9 @@ printdecisions(Solver *solv)
              if (fn || f->name != s->name)
                {
                  if (solv->rc_output == 2)
-                   printf(">!> remove  %s-%s%s\n", id2str(pool, s->name), id2rc(solv, s->evr), id2str(pool, s->evr));
+                   printf(">!> remove  %s-%s%s\n", id2str(pool, f->name), id2rc(solv, f->evr), id2str(pool, f->evr));
                  else if (solv->rc_output)
-                   printf(">!> remove  %s-%s.%s\n", id2str(pool, s->name), id2str(pool, s->evr), id2str(pool, s->arch));
+                   printf(">!> remove  %s-%s.%s\n", id2str(pool, f->name), id2str(pool, f->evr), id2str(pool, f->arch));
                  uninstalls++;
                }
              else
@@ -2308,7 +2308,7 @@ printdecisions(Solver *solv)
       if (solv->rc_output)
        {
          Source *source = pool_source(pool, s);
-         if (source)
+         if (source && strcmp(source_name(source), "locales"))
            printf("[%s]", source_name(source));
         }
       printf("\n");