Commit Graph

7 Commits

Author SHA1 Message Date
Panu Matilainen f311fb65ee Reset file actions between rpmtsRun() calls (RhBug:1076552)
- When the world changes underneath us (eg by %pretrans hackery)
  between test-transaction and actual transaction, in some cases
  the file action does not get recomputed if already set.
  Always reset file actions to FA_UNKNOWN before disposition
  calculations to ensure have a clean starting point.
2014-03-21 12:44:03 +02:00
Panu Matilainen 015a34e0df Eliminate header and rpmte knowledge from rpmfs
- rpmfs is such a low-level construct it doesn't need to know anything
  about the upper layers. Gather the necessary bits of info in the
  sole caller instead and pass only whats needed to rpmfsNew() to
  enable creating a filestate item without having rpmte/header at hand,
  which we'll be needing in the fsm shortly.
2012-04-24 13:36:38 +03:00
Panu Matilainen 9f4186766c Bury build filestate setting inside fsm remains
- This whole thing probably isn't needed anymore, but for now just
  lift the FA_SKIP/FA_COPYOUT setting to rpmPackageFilesArchive(),
  allowing rpmfsSetAction() to become properly internal-only function.
- Trim out unnecessary now unnecessary librpm internal includes
  from librpmbuild code
2012-04-24 12:43:54 +03:00
Panu Matilainen 25e68ab6e2 Use correct file state for colored file replacements
- On colored file conflict resolution, the non-preferred colored
  file state would depend on installation order: if non-preferred
  arch is installed first, and the preferred arch in another
  transaction, the non-preferred color would get marked "replaced"
  indicating a forced install when none was used. This fixes
  the file state in such cases to "wrong color" to be consistent
  of the other installation scenarios.
2011-08-29 14:04:28 +03:00
Panu Matilainen 8b7ff12b4e Add "c++ protection" to (hopefully) all of our internal headers 2010-09-21 15:21:12 +03:00
Panu Matilainen 869004e8fb Move header filecount retrieve from addTE() to rpmfsNew() 2010-05-06 15:12:41 +03:00
Panu Matilainen d221895352 Split file state structures + routines out of rpmte to separate sources
- no functional changes
2010-03-12 08:33:49 +02:00