- obtain default vendor the right way
authorMichael Schroeder <mls@suse.de>
Wed, 24 Jun 2009 11:42:04 +0000 (13:42 +0200)
committerMichael Schroeder <mls@suse.de>
Wed, 24 Jun 2009 11:42:04 +0000 (13:42 +0200)
tools/susetags2solv.c

index 753b86c..77da9c4 100644 (file)
@@ -144,11 +144,8 @@ main(int argc, char **argv)
          perror(contentfile);
          exit(1);
        }
-      repo_add_content(repo, fp, REPO_REUSE_REPODATA | REPO_NO_INTERNALIZE);
-      if (repo->start < repo->end)
-        if (!strncmp(id2str(pool, pool->solvables[repo->start].name), "product:", 8))
-         defvendor = pool->solvables[repo->start].vendor;
-      fclose(fp);
+      repo_add_content(repo, fp, REPO_REUSE_REPODATA);
+      defvendor = repo_lookup_id(repo, SOLVID_META, SUSETAGS_DEFAULTVENDOR);
     }
 
   if (attrname)