Commit Graph

32 Commits

Author SHA1 Message Date
Panu Matilainen 78c95448a1 Further streamline & sanitize lead handling
- Never log anything from rpmLeadRead(), instead return an error message
  the callers can log if they see fit
- Add a return value for the lead type (which is the only bit of
  info from the lead we sometimes resort to using)
- Permit NULL pointers on all return values
- Eliminate rpmLeadCheck() and rpmLeadType() from the internal API,
  these are now combined into rpmLeadRead().
- Fix up the callers: only (re)signing needs the actual lead,
  signature verification only cares if its valid or not and
  package reading only wants the type from the lead (annoying but...)
2011-07-07 11:55:28 +03:00
Panu Matilainen da53e0d66e Make rpmLeadRead() return an allocated lead, fixup callers
- Requiring callers to allocate a lead "buffer" for reading into
  is just DUMB (greetings to self back in 2008, sigh). This avoids
  having to deal with freeing the lead in case the read failed, and
  allows getting rid of rpmLeadNew() completely.
2011-07-06 12:42:56 +03:00
Panu Matilainen 826969f2c7 Add function to retrieve type from rpmlead
- for some messed up packages there's no other reliable way to determine
  source vs binary than looking at the lead :-/
2008-12-08 19:50:07 +02:00
Panu Matilainen dccc08ab66 Make rpmLeadCheck() return error msg instead of direct logging
- allows silent checking of lead and differentiating between
  non-rpm files and incompatible rpms, avoiding bogus "not an rpm package"
  message on manifests
2008-03-31 12:07:37 +03:00
Panu Matilainen 99faa2735b rpmlib.h mass eviction
- explicitly include what's really needed instead
- document remaining uses
2008-01-30 13:53:51 +02:00
Panu Matilainen 9ce13e09ef Switch to <rpm/foo.h> style for public headers
- adjust include paths accordingly
2007-12-08 14:02:32 +02:00
Panu Matilainen 92698df723 Make rpmlead opaque, add methods to deal with it
- rename methods to rpmLead*() for easy grepping
- populate lead from header where necessary
- add rpmLeadCheck() method for minimal compatibility checking to get
  rid of duplicate code in several places
- conditionalize lead version on dirtokens
2007-12-01 18:31:09 +02:00
Ralf Corsépius abeea80a38 Use #include <x.h> syntax to include public headers. 2007-11-23 06:46:19 +01:00
Panu Matilainen 7c1a960aae Remove the deprecated rpmlead definitions from public headers 2007-09-26 11:29:53 +03:00
Ralf Corsépius ebef4f211c Remove splint tags. 2007-09-11 19:07:39 +02:00
jbj c243ab099b - resurrect manifests, RPMRC_NOTFOUND returned by readLead().
CVS patchset: 6752
CVS date: 2003/04/16 17:48:04
2003-04-16 17:48:04 +00:00
jbj f5a546f580 - merge signature returns into rpmRC.
- python: exceptions on NOKEY/NOTTRUSTED.

CVS patchset: 5667
CVS date: 2002/08/23 21:01:59
2002-08-23 21:01:59 +00:00
jbj 05cb73a7ee Factor bounds checking annotations into source code.
CVS patchset: 5521
CVS date: 2002/06/22 18:51:56
2002-06-22 18:51:56 +00:00
jbj 72471f2e54 Explicit branchstate annotations.
CVS patchset: 5113
CVS date: 2001/10/15 17:53:34
2001-10-15 17:53:34 +00:00
jbj d8dc44f363 lclint fiddles to annotate globals.
CVS patchset: 5106
CVS date: 2001/10/15 03:22:10
2001-10-15 03:22:10 +00:00
jbj 525f4cb8b1 - ratchet up to lclint "strict" level.
CVS patchset: 5104
CVS date: 2001/10/13 19:35:58
2001-10-13 19:35:58 +00:00
jbj f75a3f71ab Doxygen annotations for config files.
Doxygen annotations for rpmdep section.
Add manifests for install modes.

CVS patchset: 4675
CVS date: 2001/04/10 12:36:45
2001-04-10 12:36:45 +00:00
jbj 8c10883fdd Doxygen annotations.
CVS patchset: 4138
CVS date: 2000/08/28 01:08:57
2000-08-28 01:08:57 +00:00
jbj f8b364d7a8 Doxygen annotations.
CVS patchset: 4132
CVS date: 2000/08/27 19:27:03
2000-08-27 19:27:03 +00:00
jbj b8d3c0d56a lclint annotations.
CVS patchset: 3288
CVS date: 1999/09/17 20:40:41
1999-09-17 20:40:41 +00:00
jbj 8bd997f2e0 Perl bindings need
#include <foo.h>
not
	#include "foo.h"

CVS patchset: 3143
CVS date: 1999/07/13 21:37:57
1999-07-13 21:37:57 +00:00
jbj 2578b7fc84 implement abstract fd type almost everywhere.
CVS patchset: 2542
CVS date: 1998/11/18 21:41:05
1998-11-18 21:41:05 +00:00
jbj 9acba0bddd Add multiple include avoidance and c++ prototype wrapping throughout *.h.
Delete trailing white space in *.h.

CVS patchset: 2181
CVS date: 1998/07/25 15:10:58
1998-07-25 15:10:58 +00:00
root d382745d17 The Great Renaming
CVS patchset: 1171
CVS date: 1996/11/18 18:02:36
1996-11-18 18:02:36 +00:00
root 6f435ae131 comment
CVS patchset: 652
CVS date: 1996/06/19 18:18:04
1996-06-19 18:18:04 +00:00
root 5203f9c5df fixed old lead struct for Alpha
CVS patchset: 463
CVS date: 1996/03/07 16:48:12
1996-03-07 16:48:12 +00:00
marc 3a4c95f8d6 removed signature type macros
CVS patchset: 312
CVS date: 1996/02/19 02:37:21
1996-02-19 02:37:21 +00:00
root ca4a7f8132 added support for old packages, lots of bug fixes
CVS patchset: 265
CVS date: 1996/02/14 17:55:28
1996-02-14 17:55:28 +00:00
ewt d2564d4aac changed magic and version numbers to unsigned
CVS patchset: 137
CVS date: 1996/01/05 18:18:39
1996-01-05 18:18:39 +00:00
marc 3bee9f5109 add readLead() and writeLead()
CVS patchset: 128
CVS date: 1996/01/05 03:05:34
1996-01-05 03:05:34 +00:00
marc ce54f1b888 added RPMLEAD_SIGNONE RPMLEAD_SIZE
added signature_type to the lead structure
pad lead structure to 96 bytes, 8 byte aligned
   should be enough for just about forever.

CVS patchset: 124
CVS date: 1996/01/05 02:10:08
1996-01-05 02:10:08 +00:00
ewt a49f40af8c Initial revision
CVS patchset: 104
CVS date: 1995/12/27 19:50:38
1995-12-27 19:50:38 +00:00