Panu Matilainen
f35277c8a7
Eliminate wtf pointer games with rpmGetPath result.
2008-03-24 19:01:12 +02:00
Panu Matilainen
7ae38cdd44
Avoid entirely silly rpmio use in addFileToTagAux()
2008-03-24 19:00:48 +02:00
Jindrich Novy
a3ceec504b
Use rasprintf() to prevent overflows and remove BUFSIZ buffer limit.
2008-03-23 13:50:07 +01:00
Jindrich Novy
ca6f318f7a
Fix writeRPM, use dynamic allocation, remove bogus const.
2008-03-23 13:48:49 +01:00
Panu Matilainen
8e7bc88eda
Make yet more build tables readonly
...
- preambleList and partList are modified runtime for silly reasons,
reminders to fix later..
2008-03-06 20:47:17 +02:00
Panu Matilainen
d718b12f5b
Mass convert (back) to rpmTag as it's usable everywhere now
...
- cast away a few cases where the enum usage causes ridiculous amount
of compiler warnings from unhandled switch-cases
2008-02-05 17:42:19 +02:00
Panu Matilainen
130118d594
Use rpmTagType always now that it's available everywhere
...
- RPM_MASK_TYPE is not a datatype, move it out of the enum
- add missing cases python header handling to shut up gcc
2008-02-05 16:14:34 +02:00
Panu Matilainen
e886043a10
Add rpm_off_t type for file size types, use where spotted
...
- preliminaries for bumping up the max size, use rpm-specific type
as off_t size varies, header data needs fixed size
2008-02-04 11:27:00 +02:00
Panu Matilainen
eb5dc35c19
Include spring-cleaning
...
- put some consistency into include ordering
- everything (apart from bits missed ;) is now ordered like this
1. "system.h"
2. other system includes
3. rpm public headers
4. rpm private headers
5. "debug.h"
2008-01-30 17:05:29 +02: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
68e1d60be3
Signedness consistency in rpmfi interface vs internal structures
2008-01-02 17:02:06 +02:00
Panu Matilainen
addac6a86b
Add rpm_data_t (and _constdata_t) for header data, use everywhere
...
- consistent, easy to grep for and change...
- bogus consts removed where spotted
2007-12-19 12:05:56 +02:00
Panu Matilainen
8bdd462b50
Make fsm failedFile non-const like it really is
...
- callers need to free it so const is wrong
- cast away the hardlink-hackery in fsm instead
2007-12-18 10:10:03 +02:00
Panu Matilainen
506a8f5365
Bogus const in temporary variables
2007-12-16 21:24:44 +02:00
Panu Matilainen
598d6efc86
Much of spec internals is exposed, let them be const for now
2007-12-16 20:58:44 +02:00
Panu Matilainen
14284725e6
Remove const from rpmMkTempFile file name parameter
...
- the temp name is malloced and needs to be freed by caller
2007-12-16 16:25:09 +02:00
Panu Matilainen
b6a663ec0a
Remove bogus const from rpmGetPath() temporary targets
2007-12-15 10:39:15 +02:00
Panu Matilainen
55cb2ff128
Bogus const removal continued...
2007-12-14 19:52:11 +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
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
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
6d1cb6a9da
Silly thinko/typo causing source rpms to provide their nvr..
2007-12-11 13:50:20 +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
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
2a9c146f31
rpm5.org: fixup various places in rpmbuild from rpmerr.h elimination
2007-12-07 09:28:39 +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
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
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
4d49dfcf41
Expand private include file names to be relative to $(top_srcdir)
2007-11-23 11:37:54 +01: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
Ralf Corsépius
abeea80a38
Use #include <x.h> syntax to include public headers.
2007-11-23 06:46:19 +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
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
8f97ae9d26
Document rpmio_internal.h uses outside rpmio/
2007-11-07 11:57:12 +02:00
Panu Matilainen
1fe38d71cc
Use fdGetFILE() instead of rpmio internal fdGetFp() everywhere
2007-10-29 09:42:21 +02:00
Ralf Corsépius
14d434925b
Include "rpmbuild.h" instead of <rpmbuild.h>.
2007-10-28 06:49:54 +01:00
Ralf Corsépius
9735f83012
Include "rpmio_internal.h" instead of <rpmio_internal.h>.
2007-10-28 06:43:19 +01:00
Ralf Corsépius
bebeb89735
Eliminate [u|]int_[8|16|32]. Use c99 stdint.h types instead.
2007-10-26 13:24:14 +02:00
Panu Matilainen
01d5c13a42
Make rpmerr.h private, include directly where needed.
2007-10-09 15:33:49 +03:00
Panu Matilainen
56366e3890
Replace all uses of RPMMESS_NORMAL with RPMLOG_NOTICE
2007-10-09 14:50:42 +03:00
Panu Matilainen
4ce9fc1a17
Replace all rpmMessage() uses with rpmlog()
2007-10-09 14:14:30 +03:00
Panu Matilainen
d709195c3a
Replace all rpmError() uses with rpmlog()
2007-10-09 14:06:06 +03:00
Panu Matilainen
2c2538d726
Rename Spec -> rpmSpec for namespacing
2007-09-21 15:23:02 +03:00