summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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