summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2009-10-21 14:25:39 +0200
committerMichael Schroeder <mls@suse.de>2009-10-21 14:25:39 +0200
commitbee3f1f4d7eb239a84db2fb228e8a638231ebc64 (patch)
treeea0e16585e414556e7dc2b64be807aa2958c1d50 /ext
parentac653e916f2f65eb9b1db80c4bb1fb0f591f21ea (diff)
downloadlibsolv-bee3f1f4d7eb239a84db2fb228e8a638231ebc64.tar.gz
libsolv-bee3f1f4d7eb239a84db2fb228e8a638231ebc64.tar.bz2
libsolv-bee3f1f4d7eb239a84db2fb228e8a638231ebc64.zip
- ignore version in source field
Diffstat (limited to 'ext')
-rw-r--r--ext/repo_deb.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/repo_deb.c b/ext/repo_deb.c
index 8b18f45..6d3d64b 100644
--- a/ext/repo_deb.c
+++ b/ext/repo_deb.c
@@ -266,6 +266,14 @@ control2solvable(Solvable *s, Repodata *data, char *control)
case 'S' << 8 | 'O':
if (!strcasecmp(tag, "source"))
{
+ char *q2;
+ /* ignore version for now */
+ for (q2 = q; *q2; q2++)
+ if (*q2 == ' ' || *q2 == '\t')
+ {
+ *q2 = 0;
+ break;
+ }
if (s->name && !strcmp(q, id2str(pool, s->name)))
repodata_set_void(data, s - pool->solvables, SOLVABLE_SOURCENAME);
else