Commit Graph

1029 Commits

Author SHA1 Message Date
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 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 6bdbbefbec Split rpmte internals to separate header
- avoid unnecessary include-order issues
- stop define-games for internals access
2007-12-03 10:15:46 +02:00
Panu Matilainen 249113b17a Move rpmsenseFlag enums to rpmds where they logically belong 2007-12-02 22:59:38 +02:00
Panu Matilainen 2c3ce0c8b0 Split rpmfi internals to separate header 2007-12-03 09:46:51 +02:00
Panu Matilainen 9cbf0349b8 Use regular POSIX functions instead of "RPC" clones
- we only care about local files
2007-12-03 16:33:18 +02:00
Panu Matilainen fb90b8b4eb More rpmlead exorcizing
- remove unnecessary type parameter to writeRPM(), header knows what it is
- remove unnecessary lead argument to readRPM(), it's unused anyway
- drop lead from cpioSourceArchive struct
2007-12-01 21:06:00 +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
Panu Matilainen 2f7c913723 (no)dirtokens is just a build-time option now 2007-12-01 10:09:54 +02:00
Panu Matilainen 89527785bb Move logging related macros rpmlog, adjust includes 2007-11-30 23:08:38 +02:00
Panu Matilainen 6cfe6e2f10 Remove unneeded includes 2007-11-27 12:42:12 +02:00
Panu Matilainen fbf0cb4441 Move legacy%#¤%#¤ to librpm now that it can move.. 2007-11-27 11:34:23 +02:00
Ralf Corsépius 96e7f513cd Eliminate type "byte" 2007-11-26 10:42:39 +01:00
Panu Matilainen 1a0968f31f Add doxygen group for rpmfc, include in librpm + hacking docs 2007-11-23 14:57:18 +02:00
Ralf Corsépius e8aa138e98 Reflect changes to include files. 2007-11-23 11:38:17 +01:00
Ralf Corsépius 4d49dfcf41 Expand private include file names to be relative to $(top_srcdir) 2007-11-23 11:37:54 +01:00
Panu Matilainen 2c6905dd9f Move rpmGetPath and rpmGenPath to rpmfileutil.h 2007-11-23 10:20:19 +02:00
Panu Matilainen ff77bfa2a1 Move file compression stuff from rpmmacro.h to rpmfileutil.h 2007-11-23 10:05:49 +02:00
Panu Matilainen d10acc7c2a Move makeTempFile() from misc.h to rpmfileutil.h
- probably not very useful outside rpm but used all over the tree,
- rename to rpmMkTempFile() for namespacing since we're exporting it now
2007-11-22 16:28:30 +02:00
Panu Matilainen e063854e11 Calculating file checksums aint legacy activity
- move the checksumming into librpmio
- rename domd5() to rpmDoDigest() with future expansion for specifying
  digest algorithm type (ignored for now)
- rearrange parameters to leave return types last
- one less rpmio_internal outside rpmio/, whee...
- used all over the rpm tree, and it knows about handling prelinked files
  so potentially useful for outside users, might as well export it
- new public header rpmfilutil.h for collecting this sort of stuff
2007-11-22 16:06:11 +02:00
Panu Matilainen 115d698252 Move string helpers from lib/misc.h to rpmio/rpmstring.h
- splitString, freeSplitString, stripTrailingChar
2007-11-23 08:21:23 +02:00
Panu Matilainen d6990c3ab1 Move stringbuf into librpmio, rename header
- rename header to more generic rpmstring.h for collecting misc string
  helper functions
2007-11-23 08:11:42 +02:00
Ralf Corsépius abeea80a38 Use #include <x.h> syntax to include public headers. 2007-11-23 06:46:19 +01:00
Ralf Corsépius d9c9a98069 Add -I$(top_builddir)/include/rpm to AM_CPPFLAGS. 2007-11-22 16:45:25 +01:00
Panu Matilainen 17ef8a3082 Lose rpmerr.h for good 2007-11-19 16:32:15 +02:00
Panu Matilainen 43c5de66fb Replace all RPMERR_* etc uses with corresponding RPMLOG_* levels 2007-11-19 16:25:24 +02:00
Panu Matilainen 827399cda0 Fix free on invalid pointer after displaying "Unable to open temp file"
Patch from Pascal Rigaux
2007-11-13 12:47:22 +02:00
Panu Matilainen 751bba091b Dead code removal 2007-11-08 14:17:17 +02:00
Panu Matilainen 49cd264574 Use _target_* macros for build restriction checking
- avoid using deprecated rpmrc rpmGet*Info()
- plug a small memory leak (remember to free the values too)
- potential linux vs Linux as the os name implications but as isMemberInEntry()
  ignores case anyway, shouldn't matter
2007-11-08 14:09:31 +02:00
Panu Matilainen 5320dcba03 Remove dead & unused RPMTAG_ARCHIVESIZE addition code
- rpm >= 4.1 uses RPMTAG_PAYLOADSIZE and translates RPMTAG_ARCHIVESIZE to
  it automatically
2007-11-08 12:34:53 +02:00
Panu Matilainen f81c916aef Remove dead rpmrc-related code from spec parsing 2007-11-08 12:16:48 +02:00
Panu Matilainen 8f97ae9d26 Document rpmio_internal.h uses outside rpmio/ 2007-11-07 11:57:12 +02:00
Panu Matilainen 8239d0b74b Remove bunch of unnecessary misc.h includes, document others 2007-11-07 10:17:10 +02:00
Panu Matilainen d8babb5a86 Remove .splintrc's in the tree 2007-11-07 09:01:38 +02:00
Panu Matilainen 43b1952dc6 Eliminate rpmfcToken struct internals from the API 2007-11-02 12:11:33 +02:00
Panu Matilainen 8afe81c214 Use NSS instead of beecrypt for encryption (Tomas Mraz) 2007-11-02 10:02:40 +02:00
Panu Matilainen e1cc5871a0 Document RPMFI_INTERNAL uses 2007-10-31 12:48:43 +02:00
Panu Matilainen bb976c2f57 Document _RPMTE_INTERNAL needs 2007-10-31 12:39:23 +02:00
Panu Matilainen bb19662ebd Erm... rpmdsFlags are int32_t type, not char* 2007-10-30 15:53:44 +02:00
Ralf Corsépius c36d94ded4 merge. 2007-10-30 12:17:16 +01:00
Ralf Corsépius fa1b02934a Add -I$(top_builddir)/rpmdb to AM_CPPFLAGS. 2007-10-30 12:14:23 +01:00
Panu Matilainen 798323c39f Whole lotta trouble to avoid rpmds internals access in rpmfc 2007-10-30 13:07:59 +02:00
Ralf Corsépius 9a628446ce Add SKIPSPACE, SKIPNONSPACE. 2007-10-29 12:24:15 +01:00
Ralf Corsépius f7a062a74c Add SKIPSPACE. 2007-10-29 12:24:00 +01:00
Ralf Corsépius 7d75c393a5 Remove SKIPSPACE, SKIPNONSPACE. 2007-10-29 12:22:59 +01:00
Ralf Corsépius 6713c1e807 Don't include <ctype.h>.
Include "rpmio.h".
2007-10-29 11:45:20 +01:00
Ralf Corsépius 3d74c511ff Move typedef into extern "C". 2007-10-29 11:43:51 +01:00