diff options
-rw-r--r-- | tools/dumpsolv.c | 2 | ||||
-rw-r--r-- | tools/repo_susetags.c | 16 | ||||
-rw-r--r-- | tools/repo_write.c | 2 |
3 files changed, 9 insertions, 11 deletions
diff --git a/tools/dumpsolv.c b/tools/dumpsolv.c index 3f682d0..43fd65d 100644 --- a/tools/dumpsolv.c +++ b/tools/dumpsolv.c @@ -295,7 +295,7 @@ int main(int argc, char **argv) printf("\n"); printf("solvable %d:\n", n); if (s->name || s->evr || s->arch) - printf("name: %s(%s) %s %s\n", id2str(pool, s->name) + s->kind, id2str(pool, s->name), id2str(pool, s->evr), id2str(pool, s->arch)); + printf("name: %s %s %s\n", id2str(pool, s->name), id2str(pool, s->evr), id2str(pool, s->arch)); if (s->vendor) printf("vendor: %s\n", id2str(pool, s->vendor)); printids(repo, "provides", s->provides); diff --git a/tools/repo_susetags.c b/tools/repo_susetags.c index f1d81d7..bb8471e 100644 --- a/tools/repo_susetags.c +++ b/tools/repo_susetags.c @@ -18,7 +18,7 @@ #include "repo_susetags.h" struct parsedata { - solvable_kind kind; + char *kind; Repo *repo; Repodata *data; struct parsedata_common common; @@ -40,14 +40,13 @@ static char *flagtab[] = { "<=" }; - /* * adddep * create and add dependency */ static unsigned int -adddep(Pool *pool, struct parsedata *pd, unsigned int olddeps, char *line, Id marker, solvable_kind kind) +adddep(Pool *pool, struct parsedata *pd, unsigned int olddeps, char *line, Id marker, char *kind) { int i, flags; Id id, evrid; @@ -60,7 +59,7 @@ adddep(Pool *pool, struct parsedata *pd, unsigned int olddeps, char *line, Id ma exit(1); } if (kind) - id = str2id(pool, join2(kind_prefix(kind), sp[0], 0), 1); + id = str2id(pool, join2(kind, ":", sp[0]), 1); else id = str2id(pool, sp[0], 1); if (i == 3) @@ -493,9 +492,9 @@ repo_add_susetags(Repo *repo, FILE *fp, Id vendor) commit_diskusage (&pd, last_found_pack); } - pd.kind = KIND_PACKAGE; + pd.kind = 0; if (line[3] == 't') - pd.kind = KIND_PATTERN; + pd.kind = "pattern"; if (split(line + 5, sp, 5) != 4) { fprintf(stderr, "Bad line: %s\n", line); @@ -503,7 +502,7 @@ repo_add_susetags(Repo *repo, FILE *fp, Id vendor) } /* Lookup (but don't construct) the name and arch. */ if (pd.kind) - name = str2id(pool, join2(kind_prefix(pd.kind), sp[0], 0), 0); + name = str2id(pool, join2(pd.kind, ":", sp[0]), 0); else name = str2id(pool, sp[0], 0); arch = str2id(pool, sp[3], 0); @@ -543,11 +542,10 @@ repo_add_susetags(Repo *repo, FILE *fp, Id vendor) last_found_pack = (s - pool->solvables) - repo->start; if (data) repodata_extend(data, s - pool->solvables); - s->kind = pd.kind; if (name) s->name = name; else if (pd.kind) - s->name = str2id(pool, join2(kind_prefix(pd.kind), sp[0], 0), 1); + s->name = str2id(pool, join2(pd.kind, ":", sp[0]), 1); else s->name = str2id(pool, sp[0], 1); s->evr = evr; diff --git a/tools/repo_write.c b/tools/repo_write.c index 141d783..42c6ad6 100644 --- a/tools/repo_write.c +++ b/tools/repo_write.c @@ -1294,7 +1294,7 @@ if (cbdata.dirused) /* write file header */ write_u32(fp, 'S' << 24 | 'O' << 16 | 'L' << 8 | 'V'); - write_u32(fp, SOLV_VERSION_6); + write_u32(fp, SOLV_VERSION_5); /* write counts */ write_u32(fp, nstrings); |