[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Trouble with RPMTAG_PROVIDEFLAGS FIXED



David Farning wrote:

Later when I try to use pkg_node_exp via



  if (pkg_node_exp->provide_count > 0)
    {
      printf ("Provides\n");
      printf ("\t count = %d\n", pkg_node_exp->provide_count);
      for (i = 0; i < pkg_node_exp->provide_count; i++)
        printf ("\t               %s %i %s\n",
                pkg_node_exp->provide_name[i],
                pkg_node_exp->provide_flags[i],
                pkg_node_exp->provide_version[i]);
    }



Just masking out the important bits with & 63 makes it work.
Replace
	pkg_node_exp->provide_flags[i],
with
	pkg_node_exp->require_flags[i] & 63,

What the heck is happening here?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]