From: Michael Schroeder Date: Tue, 6 Mar 2012 15:52:07 +0000 (+0100) Subject: - use our own susetags parser, even if ENABLE_SUSEREPO is set. X-Git-Tag: BASE-SuSE-Code-12_2-Branch~110 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53d0f9ccc31a5ab6f87e8c23c398d23dc6950e6d;p=thirdparty%2Flibsolv.git - use our own susetags parser, even if ENABLE_SUSEREPO is set. It's not much code and using a different parser depending on the config may lead to nasty bugs. --- diff --git a/ext/testcase.c b/ext/testcase.c index d8c83545..c7a4801b 100644 --- a/ext/testcase.c +++ b/ext/testcase.c @@ -26,12 +26,8 @@ #include "testcase.h" #include "solv_xfopen.h" -#ifndef ENABLE_SUSEREPO -# define DISABLE_JOIN2 -# include "tools_util.h" -#else -# include "repo_susetags.h" -#endif +#define DISABLE_JOIN2 +#include "tools_util.h" static struct job2str { Id job; @@ -867,8 +863,6 @@ testcase_write_susetags(Repo *repo, FILE *fp) return 0; } -#ifndef ENABLE_SUSEREPO - static inline Offset adddep(Repo *repo, Offset olddeps, char *str, Id marker) { @@ -1052,16 +1046,6 @@ testcase_add_susetags(Repo *repo, FILE *fp, int flags) return 0; } -#else - -int -testcase_add_susetags(Repo *repo, FILE *fp, int flags) -{ - return repo_add_susetags(repo, fp, 0, 0, flags); -} - -#endif - const char * testcase_getpoolflags(Pool *pool) {