src/suse.c
/* xmap:
 *  1: installed
 *  2: conflicts with installed
 *  8: interesting (only true if installed)
 * 16: undecided
 */
installed
2: conflicts with installed
8: interesting (only true if installed)
16: undecided
installed 2 : conflicts with installed 8 : interesting ( only true if installed ) 16 : undecided
static int
providedbyinstalled_multiversion_xmap(Pool *pool, unsigned char *map, Id n, Id con) 
{
  Id p, pp;
  Solvable *sn = pool->solvables + n; 
  FOR_PROVIDES(p, pp, sn->name)
    {    
      Solvable *s = pool->solvables + p; 
      if (s->name != sn->name || s->arch != sn->arch)
        continue;
      if ((map[p] & 9) != 9)
        continue;
      if (pool_match_nevr(pool, pool->solvables + p, con))
        continue;
      return 1;         
    }    
  return 0;
}
static int providedbyinstalled_multiversion_xmap ( Pool * pool , unsigned char * map , Id n , Id con ) { Id p , pp ; Solvable * sn = pool -> solvables + n ; FOR_PROVIDES ( p , pp , sn -> name ) { Solvable * s = pool -> solvables + p ; if ( s -> name != sn -> name || s -> arch != sn -> arch ) continue ; if ( ( map [ p ] & 9 ) != 9 ) continue ; if ( pool_match_nevr ( pool , pool -> solvables + p , con ) ) continue ; return 1 ; } return 0 ; }
xmap:
  1: installed
  2: conflicts with installed
  8: interesting (only true if installed)
 16: undecided
xmap : 1 : installed 2 : conflicts with installed 8 : interesting ( only true if installed ) 16 : undecided
/* found installed package that doesn't conflict */