- ignore version in source field
authorMichael Schroeder <mls@suse.de>
Wed, 21 Oct 2009 12:25:39 +0000 (14:25 +0200)
committerMichael Schroeder <mls@suse.de>
Wed, 21 Oct 2009 12:25:39 +0000 (14:25 +0200)
ext/repo_deb.c

index 8b18f45..6d3d64b 100644 (file)
@@ -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