ref: refs/heads/master
commit 2aaad0394f75695c924e1774e5df92c1ece2bae7
Author: Michael Schroeder
Date: Wed Jun 24 13:42:04 2009 +0200
- obtain default vendor the right way
---
tools/susetags2solv.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/tools/susetags2solv.c b/tools/susetags2solv.c
index 753b86c..77da9c4 100644
--- a/tools/susetags2solv.c
+++ b/tools/susetags2solv.c
@@ -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)
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org