Commit Graph

7299 Commits

Author SHA1 Message Date
Panu Matilainen b4588a1202 Remove bogus const from rpmProblemString() return type
- its malloced so it needs to be freed
- fix all users to actually free
2007-12-15 11:47:47 +02:00
Panu Matilainen 1a0a12cf15 Remove bogus const from rpmGenPath() temporary targets 2007-12-15 11:03:46 +02:00
Panu Matilainen b6a663ec0a Remove bogus const from rpmGetPath() temporary targets 2007-12-15 10:39:15 +02:00
Panu Matilainen dce66192f2 Remove bogus const from rpmGenPath and rpmGetPath return type
- both return malloced strings you're supposed to free
2007-12-15 09:39:32 +02:00
Panu Matilainen 55cb2ff128 Bogus const removal continued... 2007-12-14 19:52:11 +02:00
Panu Matilainen 61e35657a6 Another bunch of bogus const removals 2007-12-14 17:55:31 +02:00
Panu Matilainen f5a712db5b Remove bogus consts.. 2007-12-14 15:50:17 +02:00
Panu Matilainen 8d66d5fe4a Bunch of const char* corrections
- functions returning string constants as char * etc...
2007-12-14 15:17:59 +02:00
Panu Matilainen 7d817f06b1 Bunch of silly ssize_t casts
- cuts down the amount of spurious warnings from inlined code...
2007-12-14 13:39:52 +02:00
Panu Matilainen faa7e730f1 Oops, major + minor are not dev_t... 2007-12-14 13:38:58 +02:00
Panu Matilainen 0c8401abff Yet more type-pedantry...
- use rpm_tag_t for signature tag types too
- size_t, not rpm_count_t in signature generation
- add couple of explicit casts to rpmpgp.h to avoid spurious noise from
  inlined functions
2007-12-14 12:54:35 +02:00
Panu Matilainen 8946859700 More size_t type pedantry 2007-12-14 11:38:20 +02:00
Panu Matilainen 00eea2ffa0 Oops, rpmpsi index needs to be signed type 2007-12-14 11:36:48 +02:00
Panu Matilainen 4c91a3b6ad More misc size_t issues 2007-12-14 10:30:46 +02:00
Panu Matilainen 421da7c94a Use dev_t instead of ints.. 2007-12-14 10:30:01 +02:00
Panu Matilainen 4714ced24c Couple of more size_t uses + related format string fixes 2007-12-14 09:35:06 +02:00
Panu Matilainen c76674a257 Big bunch of int -> size_t corrections for various signature items 2007-12-13 21:18:37 +02:00
Panu Matilainen 1e96ead466 Use rpm_tagtype_t everywhere for rpm (header) tagtype type
- typedef'ed as uint32_t, doesn't matter much but negative types dont exist
- easy to grep, easy to change...
- define RPM_FORCEFREE_TYPE instead of -1 "magic" for forcing
  headerFreeData (ugh), easier to grep for and change than "-1"
2007-12-13 20:35:33 +02:00
Panu Matilainen 7e56c6355b Use rpm_tag_t everywhere for rpm (header) tag type
- typedef'ed as int32_t for now, negative values used in some places for
  error cases
- easy to grep, easy to change...
- add RPMTAG_NOT_FOUND define, used in place of -1 "magic",
2007-12-13 19:32:37 +02:00
Panu Matilainen cbd7a684a4 Use rpm_count_t everywhere for header data count
- typedef'ed as uint32_t as that's the key size limit imposed by BDB,
  relevant for RPM_BIN_TYPE
- easy to change to whatever later on as it's now consistent everywhere
- explicit casts where needed to avoid new warnings from signedness
2007-12-13 18:16:39 +02:00
Panu Matilainen c8f2927227 Use rpm_count_t everywhere for header data count
- typedef'ed as uint32_t as that's the key size limit imposed by BDB,
  relevant for RPM_BIN_TYPE
- easy to change to whatever later on as it's now consistent everywhere
2007-12-13 09:25:10 +02:00
Panu Matilainen 50f608b42f Install the new fancy perldep extractor 2007-12-12 14:33:56 +02:00
Panu Matilainen 4fbc356149 Register the new SCRIPT_ERROR callback value to python 2007-12-11 14:18:50 +02:00
Panu Matilainen 6d1cb6a9da Silly thinko/typo causing source rpms to provide their nvr.. 2007-12-11 13:50:20 +02:00
Ralf Corsépius f407b391c0 test == is a bashism. 2007-12-11 09:12:12 +01:00
Panu Matilainen c68860f056 OS X Leopard fixes from Giulio Eulisse 2007-12-11 08:51:54 +02:00
Panu Matilainen 6a779c394b Add python method for for retrieving (without setting) ts vsflags 2007-12-10 16:06:22 +02:00
Panu Matilainen 0c4fe4a0b0 Drop non-existing librpmmisc from rpm.pc 2007-12-08 16:12:10 +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 179ebc1745 Add RPMCALLBACK_SCRIPT_ERROR callback type
- TS callback has a better chance at doing something semi-intelligent
  on scriptlet failure than rpmlog callback
- Hijack "amount" for script tag that failed, "total" for exit code
  which might be pretty much anything: waitpid child, actual exit status or
  lua error... not probably very useful in the callback but...
- Notify before logging so users can catch the actual error message
  on next rpmlog callback.. or something
2007-12-07 16:19:21 +02:00
Panu Matilainen b67d678e2a Scriptlet (name) handling tweaks
- look up scriptlet names just once inside runScript()
- map trigger types to their real names too
2007-12-07 15:32:11 +02:00
Panu Matilainen 80f76a471c Add getter methods for rpmlogRec items (message + level) 2007-12-07 14:00:34 +02:00
Panu Matilainen 037ceff668 Rename RPMLOG_CONT to RPMLOG_DEFAULT to make purpose clearer (hopefully ;) 2007-12-07 13:31:31 +02:00
Panu Matilainen a5f65886f8 Logging enhancements
- add parameters to rpmlogCallback: current log record pointer +
  optional user data
- callback return flags to enable/disable default logging behavior and
  to perform exit() after cleaning up
- add method for retrieving prefix string for a given message priority
- move default logging behavior out of rpmlog() proper
2007-12-07 13:16:45 +02:00
Panu Matilainen ca9ff17a4d Make rpmLogRec opaque 2007-12-07 11:43:06 +02:00
Panu Matilainen e98903dbb1 Fix misleading indentation 2007-12-07 11:34:33 +02:00
Panu Matilainen 8769e540f1 Don't do tilde expansion if HOME not set
- If you dont have a home, glob() will go out of its way to give you one,
  even a wrong one.  This isn't good when daemons etc have purposefully
  unset HOME...
2007-12-07 11:33:18 +02:00
Panu Matilainen 2cce0653a1 More rpmerr.h removal fallout
- use rpmRC types where appropriate
2007-12-07 10:57:39 +02:00
Panu Matilainen d4622b5135 Yet more rpmbuild fixups from rpmerr.h removal (partly from rpm5.org)
- additionally use rpmRC return types instead of numbers where appropriate
2007-12-07 10:43:53 +02:00
Panu Matilainen 23bba68b56 rpm5.org: fixup spec parsing from rpmerr.h removal
- renumber rpmParseState enums to leave room for error codes
2007-12-07 09:53:53 +02:00
Panu Matilainen 2a9c146f31 rpm5.org: fixup various places in rpmbuild from rpmerr.h elimination 2007-12-07 09:28:39 +02:00
Panu Matilainen 79fed162ac rpm5.org: use pid_t, not int in build doScript 2007-12-07 09:01:25 +02:00
Panu Matilainen 9f34c32443 Fix query return codes (rhbz#244236)
- count + skip over errors in rpmgiNext() instead of stopping iteration
- add rpmgiNumErrors() for retrieving errors, use it in query
2007-12-05 15:56:18 +02:00
Panu Matilainen c54001150f Only platform.in is to be included in dist, dont use wildcard 2007-12-05 12:57:07 +02:00
Panu Matilainen d4cc1de207 Rename apidocs to hackingdocs, only build on request 2007-12-05 11:56:33 +02:00
Panu Matilainen 882f390585 base64.h missing from librpmio sources 2007-12-05 11:27:50 +02:00
Panu Matilainen 8ddd81d0d4 Update potfiles wrt recent changes, regenerate translations 2007-12-05 10:37:38 +02:00
Panu Matilainen 131cadaec4 Match filestage strings with the fact that we dont use "rpc" anymore 2007-12-04 11:28:16 +02:00
Panu Matilainen dbdbe8010c Eliminate debug junk from the API
- add some helper macros to accomplish the same, easy to enable / disable
  as needed
2007-12-04 11:25:46 +02:00
Panu Matilainen 422fa0dbea Document rpmtsScoreGetEntry() parameter to please doxygen 2007-12-03 18:47:40 +02:00