Dont check source packages against installed obsoletes

- Regression originating from somewhere around commit
  781cfed0fd, 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.
This commit is contained in:
Panu Matilainen 2010-09-15 11:54:11 +03:00
parent 3c6fed5347
commit 8abe568e00
1 changed files with 4 additions and 0 deletions

View 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));
}