X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=ext%2Frepo_testcase.c;h=cbdd42a3ddb40121ef0e7f3bcbbe9f122448c743;hb=1aac48dff40ef592968a18058bad270da65ed847;hp=38676efdde9feda08bbf446067d24ad18dd428ca;hpb=2d757ccc60324e7bfcc07f6f46d7f38e30642fcb;p=platform%2Fupstream%2Flibsolv.git diff --git a/ext/repo_testcase.c b/ext/repo_testcase.c index 38676ef..cbdd42a 100644 --- a/ext/repo_testcase.c +++ b/ext/repo_testcase.c @@ -388,7 +388,13 @@ writedeps(Repo *repo, FILE *fp, const char *tag, Id key, Solvable *s, Offset off fprintf(fp, "+%s\n", tag); tagwritten = 1; } - fprintf(fp, "%s\n", idstr); + if (*idstr == '/' && !ISRELDEP(id)) { + fprintf(fp, "%s\n", pool_id2str(pool, id)); + } else if (*idstr == '/') { + fprintf(fp, "\\2f%s\n", idstr + 1); + } else { + fprintf(fp, "%s\n", idstr); + } } if (tagwritten) fprintf(fp, "-%s\n", tag); @@ -616,7 +622,7 @@ testcase_add_testtags(Repo *repo, FILE *fp, int flags) /* join back version and release */ if (sp[2] && !(sp[2][0] == '-' && !sp[2][1])) sp[2][-1] = '-'; - s->evr = makeevr(pool, sp[1]); + s->evr = pool_str2id(pool, sp[1], 1); s->arch = strcmp(sp[3], "-") ? pool_str2id(pool, sp[3], 1) : 0; continue; default: