Dont check source packages against installed obsoletes
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 15 Sep 2010 08:54:11 +0000 (11:54 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 15 Sep 2010 08:54:11 +0000 (11:54 +0300)
- Regression originating from somewhere around commit
  781cfed0fd9c9651a2dd49175a85536f0b34b95b, obsoletes from installed
  packages were matched against the package being built.
  Building obsoleted packages needs to be possible, they could be for
  an older distro for example.

lib/depends.c

index 60a5683..1d04acf 100644 (file)
@@ -525,6 +525,10 @@ int rpmtsCheck(rpmts ts)
            checkInstDeps(ts, dcache, p, RPMTAG_CONFLICTNAME, rpmdsN(provides));
        }
 
+       /* Skip obsoletion checks for source packages (ie build) */
+       if (rpmteIsSource(p))
+           continue;
+
        /* Check package name (not provides!) against installed obsoletes */
        checkInstDeps(ts, dcache, p, RPMTAG_OBSOLETENAME, rpmteN(p));
     }