do not add self-provides to src rpms
authorMichael Schroeder <mls@suse.de>
Fri, 5 Oct 2007 17:24:41 +0000 (17:24 +0000)
committerMichael Schroeder <mls@suse.de>
Fri, 5 Oct 2007 17:24:41 +0000 (17:24 +0000)
tools/source_susetags.c

index b4847e9..7071605 100644 (file)
@@ -222,7 +222,7 @@ pool_addsource_susetags(Pool *pool, FILE *fp)
        continue;
       if (!strncmp(line, "=Pkg:", 5) || !strncmp(line, "=Pat:", 5))
        {
-         if (dp)
+         if (dp && s->arch != ARCH_SRC && s->arch != ARCH_NOSRC)
            dp->provides = source_addid_dep(source, dp->provides, rel2id(pool, s->name, s->evr, REL_EQ, 1), 0);
          pd.kind = 0;
          if (line[3] == 't')