Start beating a little bit of sense into the braindamaged rpmlead API
authorPanu Matilainen <Panu Matilainen pmatilai@redhat.com>
Wed, 6 Jul 2011 09:09:21 +0000 (12:09 +0300)
committerPanu Matilainen <Panu Matilainen pmatilai@redhat.com>
Wed, 6 Jul 2011 09:09:21 +0000 (12:09 +0300)
commit2a2979db51959368e8aecd1beafcbb9370aac10a
tree48d372492e5b000691b9533b0f1c4a2bb1442753
parent9feb035066e66a5859d5dad656e5a7b905ed90b9
Start beating a little bit of sense into the braindamaged rpmlead API

- rpmLeadNew() should not populate the struct, only allocate it
- The only case where we're creating new lead data is
  rpmLeadFromHeader(), move all initialization there, and add a comment
  for RhBug:717898. Also eliminate the stupid assert, we can
  easily handle NULL header here.
lib/rpmlead.c