summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2013-10-15 12:03:55 +0200
committerMichael Schroeder <mls@suse.de>2013-10-15 12:03:55 +0200
commitfccedb8ca1551f8a801c4b45660fe89f8493d26d (patch)
treeaab8f792352b6a616f5d8fbcbe5f7fa6ee243afd
parenta343ba1b2ee038e9fc0ea711622c27f249f6660b (diff)
downloadlibsolv-fccedb8ca1551f8a801c4b45660fe89f8493d26d.tar.gz
libsolv-fccedb8ca1551f8a801c4b45660fe89f8493d26d.tar.bz2
libsolv-fccedb8ca1551f8a801c4b45660fe89f8493d26d.zip
remove obsolete DISTPRODUCT/DISTVERSION parsing
-rw-r--r--ext/repo_content.c30
1 files changed, 13 insertions, 17 deletions
diff --git a/ext/repo_content.c b/ext/repo_content.c
index 75f339c..5b61a6b 100644
--- a/ext/repo_content.c
+++ b/ext/repo_content.c
@@ -444,43 +444,39 @@ repo_add_content(Repo *repo, FILE *fp, int flags)
}
}
}
+ if (!code10)
+ continue;
/*
* Every tag below is Code10 only
*
*/
- if (code10 && istag ("DISTPRODUCT"))
- /* DISTPRODUCT is for registration and Yast, not for the solver. */
- repodata_set_str(data, s - pool->solvables, PRODUCT_DISTPRODUCT, value);
- else if (code10 && istag ("DISTVERSION"))
- /* DISTVERSION is for registration and Yast, not for the solver. */
- repodata_set_str(data, s - pool->solvables, PRODUCT_DISTVERSION, value);
- else if (code10 && istag ("ARCH"))
+ if (istag ("ARCH"))
/* Theoretically we want to have the best arch of the given
modifiers which still is compatible with the system
arch. We don't know the latter here, though. */
s->arch = ARCH_NOARCH;
- else if (code10 && istag ("PREREQUIRES"))
+ else if (istag ("PREREQUIRES"))
s->requires = adddep(pool, &pd, s->requires, value, SOLVABLE_PREREQMARKER);
- else if (code10 && istag ("REQUIRES"))
+ else if (istag ("REQUIRES"))
s->requires = adddep(pool, &pd, s->requires, value, -SOLVABLE_PREREQMARKER);
- else if (code10 && istag ("PROVIDES"))
+ else if (istag ("PROVIDES"))
s->provides = adddep(pool, &pd, s->provides, value, 0);
- else if (code10 && istag ("CONFLICTS"))
+ else if (istag ("CONFLICTS"))
s->conflicts = adddep(pool, &pd, s->conflicts, value, 0);
- else if (code10 && istag ("OBSOLETES"))
+ else if (istag ("OBSOLETES"))
s->obsoletes = adddep(pool, &pd, s->obsoletes, value, 0);
- else if (code10 && istag ("RECOMMENDS"))
+ else if (istag ("RECOMMENDS"))
s->recommends = adddep(pool, &pd, s->recommends, value, 0);
- else if (code10 && istag ("SUGGESTS"))
+ else if (istag ("SUGGESTS"))
s->suggests = adddep(pool, &pd, s->suggests, value, 0);
- else if (code10 && istag ("SUPPLEMENTS"))
+ else if (istag ("SUPPLEMENTS"))
s->supplements = adddep(pool, &pd, s->supplements, value, 0);
- else if (code10 && istag ("ENHANCES"))
+ else if (istag ("ENHANCES"))
s->enhances = adddep(pool, &pd, s->enhances, value, 0);
/* FRESHENS doesn't seem to exist. */
- else if (code10 && istag ("TYPE"))
+ else if (istag ("TYPE"))
repodata_set_str(data, s - pool->solvables, PRODUCT_TYPE, value);
/* XXX do something about LINGUAS and ARCH?