Commit Graph

7 Commits

Author SHA1 Message Date
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 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 e4203f1a63 Eliminate dead assignment(s) on rpmfsFree(), memset() wipeout instead 2011-05-30 12:38:13 +03:00
Panu Matilainen 869004e8fb Move header filecount retrieve from addTE() to rpmfsNew() 2010-05-06 15:12:41 +03:00
Panu Matilainen 27869a5233 Tolerate NULL in rpmfsFree() and rpmfsFC()
- both are "can't happen" situations but easy to handle cleanly here...
2010-05-06 15:09:47 +03:00
Panu Matilainen 63dcd3d497 Minor cleanup to rpmfsNew()
- use xcalloc() to ensure clean state, no need to manually do it all
- group non-conditional and conditional operations together
2010-05-06 15:09:39 +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