platform/upstream/rpm.git
16 years agoSwitch around headerMod() and headerModifyEntry()
Panu Matilainen [Wed, 18 Jun 2008 11:59:13 +0000 (14:59 +0300)]
Switch around headerMod() and headerModifyEntry()
- headerModifyEntry() is the legacy interface going away, make it
  use headerMod() and deprecate it

16 years agoStuff legacy compat wrappers out of sight into header_internal.c
Panu Matilainen [Wed, 18 Jun 2008 11:54:41 +0000 (14:54 +0300)]
Stuff legacy compat wrappers out of sight into header_internal.c
- probably need to carry the compat stuff around for a while but get
  them out of the way...
- headerFreeTag() and headerFreeData() are just the same thing, with
  headerFreeTag() supposedly being the "new" interface which never was
  used, duh :)

16 years agoStart shredding legacy cruft out of header code
Panu Matilainen [Wed, 18 Jun 2008 11:35:56 +0000 (14:35 +0300)]
Start shredding legacy cruft out of header code
- headerGetRaw() can now be done with just a flag to headerGet()

16 years agoConvert signature code to use headerPut()
Panu Matilainen [Wed, 18 Jun 2008 10:15:46 +0000 (13:15 +0300)]
Convert signature code to use headerPut()
- tags in signature header overlap with those in "regular" header,
  can't use rpmtdFromFoo() as that would give totally bogus types and errors
- just add a wrapper around headerPut() that behaves like headerAddEntry()

16 years agoConvert parseScript() to headerPut()
Panu Matilainen [Wed, 18 Jun 2008 10:13:22 +0000 (13:13 +0300)]
Convert parseScript() to headerPut()
- AFAIR the only place in rpm where the type of a tag varies like this, ugh
- any modern rpm can handle the type being either string or string array,
  but preserving legacy behavior for now...

16 years agoConvert rpmpsmStage() to use headerPut()
Panu Matilainen [Wed, 18 Jun 2008 09:57:36 +0000 (12:57 +0300)]
Convert rpmpsmStage() to use headerPut()

16 years agoConvert rpmdbAdd() to use headerPut()
Panu Matilainen [Wed, 18 Jun 2008 09:55:02 +0000 (12:55 +0300)]
Convert rpmdbAdd() to use headerPut()

16 years agoConvert rpmtsImportPubkey() to use headerPut()
Panu Matilainen [Wed, 18 Jun 2008 09:52:28 +0000 (12:52 +0300)]
Convert rpmtsImportPubkey() to use headerPut()

16 years agoConvert RPM_BIN_TYPE uses in build to headerPut()
Panu Matilainen [Wed, 18 Jun 2008 09:37:42 +0000 (12:37 +0300)]
Convert RPM_BIN_TYPE uses in build to headerPut()

16 years agoAdd rpmtdFromUint8()
Panu Matilainen [Wed, 18 Jun 2008 09:36:20 +0000 (12:36 +0300)]
Add rpmtdFromUint8()
- handles CHAR, INT8 and BIN types

16 years agoConvert legacy retrofits & friends to headerPut()
Panu Matilainen [Wed, 18 Jun 2008 08:32:59 +0000 (11:32 +0300)]
Convert legacy retrofits & friends to headerPut()

16 years agoLose the remaining hae and hme vectors from rpmfi
Panu Matilainen [Wed, 18 Jun 2008 08:16:04 +0000 (11:16 +0300)]
Lose the remaining hae and hme vectors from rpmfi

16 years agoConvert file relocation to use headerPut/Mod
Panu Matilainen [Wed, 18 Jun 2008 08:13:58 +0000 (11:13 +0300)]
Convert file relocation to use headerPut/Mod

16 years agoAdd headerMod() to headerPut() etc family
Panu Matilainen [Wed, 18 Jun 2008 07:59:45 +0000 (10:59 +0300)]
Add headerMod() to headerPut() etc family
- just a dumb wrapper around old headerModifyEntry() for now

16 years agoConvert rpmcache to headerGet+Put
Panu Matilainen [Wed, 18 Jun 2008 07:15:37 +0000 (10:15 +0300)]
Convert rpmcache to headerGet+Put

16 years agoNumber of sources can't very well be negative...
Panu Matilainen [Tue, 17 Jun 2008 13:11:49 +0000 (16:11 +0300)]
Number of sources can't very well be negative...
- also happens to avoid compiler whining about differing signedness

16 years agoShut up incompatible pointer warnings from rpmtdFromStringArray()
Panu Matilainen [Tue, 17 Jun 2008 13:07:55 +0000 (16:07 +0300)]
Shut up incompatible pointer warnings from rpmtdFromStringArray()
- it'd be far nicer to be able to append single strings to string arrays
  through rpmtdFromString() but it'll require some interesting hackery
  in header.c
- use temporary const char* pointer where necessary to convert to
  const char ** compatible type before passing to rpmtdFromStringArray()

16 years agoMake rpmtdFromStringArray() data argument const afterall
Panu Matilainen [Tue, 17 Jun 2008 13:04:12 +0000 (16:04 +0300)]
Make rpmtdFromStringArray() data argument const afterall
- produces somewhat less warnings as is, a bit surprisingly

16 years agoOops, RPMTAG_FILEMODES is INT16, not 32 type
Panu Matilainen [Tue, 17 Jun 2008 12:36:33 +0000 (15:36 +0300)]
Oops, RPMTAG_FILEMODES is INT16, not 32 type

16 years agoConvert rest of writeRPM() to headerPut()
Panu Matilainen [Tue, 17 Jun 2008 11:54:44 +0000 (14:54 +0300)]
Convert rest of writeRPM() to headerPut()
- can't use rpmtdFromFoo() on signature header tags so need to construct
  them manually

16 years agoConvert the final pieces of rpmfc to headerPut()
Panu Matilainen [Tue, 17 Jun 2008 11:45:14 +0000 (14:45 +0300)]
Convert the final pieces of rpmfc to headerPut()
- more const-impedance here.. need to do something about it

16 years agoConvert the rest of genCpioListAndHeader() to headerPut()
Panu Matilainen [Tue, 17 Jun 2008 11:37:55 +0000 (14:37 +0300)]
Convert the rest of genCpioListAndHeader() to headerPut()
- explicitly cast all platform dependent data like time_t, mode_t etc
  to the type used in headers always instead of having everything doubled

16 years agoAdd rpmtdFrom() methods for 16 and 64 bit types
Panu Matilainen [Tue, 17 Jun 2008 11:24:16 +0000 (14:24 +0300)]
Add rpmtdFrom() methods for 16 and 64 bit types

16 years agoConvert the straightforward bits of build/files.c to headerPut()
Panu Matilainen [Tue, 17 Jun 2008 10:30:08 +0000 (13:30 +0300)]
Convert the straightforward bits of build/files.c to headerPut()

16 years agoConvert most of parsePreamble to headerPut()
Panu Matilainen [Tue, 17 Jun 2008 09:57:59 +0000 (12:57 +0300)]
Convert most of parsePreamble to headerPut()

16 years agoConvert build reqprov to headerPut()
Panu Matilainen [Tue, 17 Jun 2008 09:56:53 +0000 (12:56 +0300)]
Convert build reqprov to headerPut()
- also changes index type to uint32_t instead of signed

16 years agoConvert parseSpec to headerPut()
Panu Matilainen [Tue, 17 Jun 2008 09:55:33 +0000 (12:55 +0300)]
Convert parseSpec to headerPut()

16 years agoConvert parseChangelog to headerPut()
Panu Matilainen [Tue, 17 Jun 2008 09:55:01 +0000 (12:55 +0300)]
Convert parseChangelog to headerPut()

16 years agoConvert most of build/pack.c to use rpmtdFromFoo() and headerPut()
Panu Matilainen [Tue, 17 Jun 2008 09:10:01 +0000 (12:10 +0300)]
Convert most of build/pack.c to use rpmtdFromFoo() and headerPut()
- heavy on asserts() for now to catch out any problems
- sigtags can't use rpmtdFromFoo() as the tag numbers collide with the
  regular tag table and would cause failures if we tried

16 years agoAdd some new rpmtd creation methods
Panu Matilainen [Tue, 17 Jun 2008 09:07:19 +0000 (12:07 +0300)]
Add some new rpmtd creation methods
- rpmtdFromString(), rpmtdFromStringArray() and rpmtdFromUint32() permit
  populating tag containers of compatible datatypes that can be used for
  headerPut() with some extra type-safety and sanity checks on the types

16 years agoReplace headerRemoveEntry() with headerDel() everywhere
Panu Matilainen [Tue, 17 Jun 2008 06:07:37 +0000 (09:07 +0300)]
Replace headerRemoveEntry() with headerDel() everywhere
- this is a no-brainer s/headerRemoveEntry/headerDel/g operation as the
  interface didn't actually change at all

16 years agoRename headerRemoveEntry() to headerDel(), add compat wrapper
Panu Matilainen [Tue, 17 Jun 2008 06:02:41 +0000 (09:02 +0300)]
Rename headerRemoveEntry() to headerDel(), add compat wrapper
- no differences here except headerDel is a nice short name (lifted from
  rpm5.org) to go with the new headerGet() etc family
- deprecate headerRemoveEntry()

16 years agoEliminate last headerFreeData() in rpmfi
Panu Matilainen [Tue, 17 Jun 2008 05:49:19 +0000 (08:49 +0300)]
Eliminate last headerFreeData() in rpmfi

16 years agoPreserve headerNext() allocation behavior
Panu Matilainen [Sat, 14 Jun 2008 11:43:15 +0000 (14:43 +0300)]
Preserve headerNext() allocation behavior
- commit bca23d19af0a6d7371d18f6fd763e37e03f6e21a accidentally changed
  it to MINMEM which breaks signature checking, lovely...

16 years agoLose the useless tag data type fields from rpmds
Panu Matilainen [Sat, 14 Jun 2008 08:31:15 +0000 (11:31 +0300)]
Lose the useless tag data type fields from rpmds
- we know names and evrs are string arrays, if they're not we're screwed
  anyway, and flags need to be freed if header is not around
- there goes hfd() too...

16 years agoUse PRIu64 for file size formatter in queries
Panu Matilainen [Mon, 16 Jun 2008 06:24:46 +0000 (09:24 +0300)]
Use PRIu64 for file size formatter in queries

16 years agoDoxygen parameter name mismatch
Panu Matilainen [Mon, 16 Jun 2008 06:06:15 +0000 (09:06 +0300)]
Doxygen parameter name mismatch

16 years agoDeprecate headerGetEntry() and headerGetEntryMinMemory()
Panu Matilainen [Fri, 13 Jun 2008 13:55:12 +0000 (16:55 +0300)]
Deprecate headerGetEntry() and headerGetEntryMinMemory()

16 years agoConvert rpmtsSolve() to new headerGet()
Panu Matilainen [Fri, 13 Jun 2008 13:52:39 +0000 (16:52 +0300)]
Convert rpmtsSolve() to new headerGet()

16 years agoKill off hge() and hfd() vectors in rpmfi_s
Panu Matilainen [Fri, 13 Jun 2008 13:44:35 +0000 (16:44 +0300)]
Kill off hge() and hfd() vectors in rpmfi_s
- hfd() with FORCEFREE or STRING_ARRAY is just regular free()
- hge() no longer needed...

16 years agoLose the remaining hge() uses in rpmfi relocation
Panu Matilainen [Fri, 13 Jun 2008 13:38:10 +0000 (16:38 +0300)]
Lose the remaining hge() uses in rpmfi relocation
- ugly hackery for now, otoh it wasn't pretty to start with...
- always make a "sparse" dupe of directory names so we know how to free
  it even if just some of the directories were relocated (this was broken
  from the previous round of relocation alloca removal hackery)
- take advantage of RPMTD_PTR_ALLOCED to correctly free in all cases

16 years agoRPMTAG_FILEFLAGS is not used for anything in relocations
Panu Matilainen [Fri, 13 Jun 2008 11:17:08 +0000 (14:17 +0300)]
RPMTAG_FILEFLAGS is not used for anything in relocations

16 years agoConvert validRelocation parts of relocateFileList() to new headerGet()
Panu Matilainen [Fri, 13 Jun 2008 10:59:04 +0000 (13:59 +0300)]
Convert validRelocation parts of relocateFileList() to new headerGet()
- one piece at a time, this baby breaks easily ;)
- take advantage of iterating over td as possible..

16 years agoUnbreak relocations broken by 621e7518418a0e031d302e8681fe0bf81d0c4b72
Panu Matilainen [Fri, 13 Jun 2008 10:52:32 +0000 (13:52 +0300)]
Unbreak relocations broken by 621e7518418a0e031d302e8681fe0bf81d0c4b72
- stick scareFlags into rpmfi_s for now so they're available everywhere
- subtle games with how fi->dil is alloced on scareMem behavior, don't
  blow up and don't leak memory either
- stuff scareFlags into rpmfi struct for now

16 years agoUse 64bit sizes by default in rpmcache
Jindrich Novy [Fri, 13 Jun 2008 10:51:01 +0000 (12:51 +0200)]
Use 64bit sizes by default in rpmcache

16 years agoAllow spaces in Source/Patch URLs and filenames
Jindrich Novy [Fri, 13 Jun 2008 10:31:26 +0000 (12:31 +0200)]
Allow spaces in Source/Patch URLs and filenames

16 years agoSimplify providePackageNVR()
Panu Matilainen [Fri, 13 Jun 2008 09:23:46 +0000 (12:23 +0300)]
Simplify providePackageNVR()
- convert providePackageNVR() to new headerGet()
- use rpmds to figure if we already have the provide instead of manually
  doing it

16 years agohfd with FORCEFREE is just _free()
Panu Matilainen [Fri, 13 Jun 2008 08:42:46 +0000 (11:42 +0300)]
hfd with FORCEFREE is just _free()

16 years agoConvert rpmpsmStage() to new headerGet()
Panu Matilainen [Fri, 13 Jun 2008 08:42:06 +0000 (11:42 +0300)]
Convert rpmpsmStage() to new headerGet()
- grabbing fi->fuser and fi->fgroup there seem completely unnecessary,
  they're always populated from rpmfiNew() afaict...
- hfd() with FORCEFREE is just the same as _free()...

16 years agoConvert runImmedTriggers() to use new headerGet()
Panu Matilainen [Fri, 13 Jun 2008 08:27:13 +0000 (11:27 +0300)]
Convert runImmedTriggers() to use new headerGet()

16 years agoMinimally convert handleOneTrigger() to use new headerGet()
Panu Matilainen [Fri, 13 Jun 2008 08:17:00 +0000 (11:17 +0300)]
Minimally convert handleOneTrigger() to use new headerGet()

16 years agoConvert legacyRetrofit() to new headerGet()
Panu Matilainen [Fri, 13 Jun 2008 07:27:46 +0000 (10:27 +0300)]
Convert legacyRetrofit() to new headerGet()

16 years agoMinimally convert handleInstInstalledFiles() to new headerGet()
Panu Matilainen [Fri, 13 Jun 2008 07:21:40 +0000 (10:21 +0300)]
Minimally convert handleInstInstalledFiles() to new headerGet()
- fi->hge style doesn't matter as otherStates is just local temp variable,
  use MINMEM always to avoid unnecessary copy (DEFAULT wouldn't copy either
  atm but..)

16 years agoMinimally convert rpmdbFindFpList() to use new headerGet()
Panu Matilainen [Fri, 13 Jun 2008 07:16:24 +0000 (10:16 +0300)]
Minimally convert rpmdbFindFpList() to use new headerGet()

16 years agoMinimally convert rpmdsNew() to use new headerGet()
Panu Matilainen [Fri, 13 Jun 2008 07:09:20 +0000 (10:09 +0300)]
Minimally convert rpmdsNew() to use new headerGet()
- take advantage of HEADERGET_ALLOC to avoid manually duplicating Flags
- otherwise just dumb minimal conversion for now, rpmds could make use
  of rpmtd iteration etc but leaving that for later...

16 years agoConvert a few hge()'s in relocation code to new headerGet() & friends
Panu Matilainen [Thu, 12 Jun 2008 14:37:33 +0000 (17:37 +0300)]
Convert a few hge()'s in relocation code to new headerGet() & friends

16 years agoMake fssizes tag extension 64bit
Panu Matilainen [Thu, 12 Jun 2008 14:09:35 +0000 (17:09 +0300)]
Make fssizes tag extension 64bit
- type changing doesn't matter much as this is just runtime generated data,
  not from headers
- also gets rid of the remaining old hge() use in tagexts

16 years agoChange rpmGetFilesystemUsage() size args to rpm_loff_t
Panu Matilainen [Thu, 12 Jun 2008 14:03:04 +0000 (17:03 +0300)]
Change rpmGetFilesystemUsage() size args to rpm_loff_t

16 years agoMake rpmfiFSize() return rpm_loff_t type, fixup callers
Panu Matilainen [Thu, 12 Jun 2008 13:41:31 +0000 (16:41 +0300)]
Make rpmfiFSize() return rpm_loff_t type, fixup callers
- Internally file sizes are still stored as 32bit, going to 64bit wouldn't
  make much sense (would only waste memory for nothing) as long as we're
  bound by cpio's 32bit per-file limit. Being "64bit ready" for filesizes
  doesn't hurt anything though...

16 years agorpmfiNew() doesn't use old hge() anymore
Panu Matilainen [Thu, 12 Jun 2008 12:31:27 +0000 (15:31 +0300)]
rpmfiNew() doesn't use old hge() anymore

16 years agoUse long archive size always in rpmfi
Panu Matilainen [Thu, 12 Jun 2008 12:29:40 +0000 (15:29 +0300)]
Use long archive size always in rpmfi

16 years agoAdd more 64bit size tags + tag extensions for converting from old values
Panu Matilainen [Thu, 12 Jun 2008 12:05:43 +0000 (15:05 +0300)]
Add more 64bit size tags + tag extensions for converting from old values

16 years agoMove 32 to 64 bit tag conversion to helper function
Panu Matilainen [Thu, 12 Jun 2008 12:01:58 +0000 (15:01 +0300)]
Move 32 to 64 bit tag conversion to helper function

16 years agoUse HEADERGET_ALLOC instead of manual copy in longfilesizesTag()
Panu Matilainen [Thu, 12 Jun 2008 11:16:28 +0000 (14:16 +0300)]
Use HEADERGET_ALLOC instead of manual copy in longfilesizesTag()

16 years agoUse HEADERGET_ALLOC instead of manually copying the data in rpmfiNew()
Panu Matilainen [Thu, 12 Jun 2008 10:35:09 +0000 (13:35 +0300)]
Use HEADERGET_ALLOC instead of manually copying the data in rpmfiNew()
- headerGet() knows better how to create a copy of the data, let it...

16 years agoDumb thinko in header data allocation
Panu Matilainen [Thu, 12 Jun 2008 08:04:33 +0000 (11:04 +0300)]
Dumb thinko in header data allocation

16 years agoUse rpm_loff_t in printFileInfo()
Jindrich Novy [Wed, 11 Jun 2008 14:13:18 +0000 (16:13 +0200)]
Use rpm_loff_t in printFileInfo()
- and use snprintf

16 years agoAdd headerGet() flag to force allocation of returned data
Panu Matilainen [Wed, 11 Jun 2008 09:26:52 +0000 (12:26 +0300)]
Add headerGet() flag to force allocation of returned data
- earlier there was no way for caller to know if returned data or parts
  of it pointed to header memory (other than "know" how rpm behaves on
  given types), this allows consistent behavior for callers (ie you
  always "own" the returned data, not depending on header) when needed
- if HEADERGET_ALLOC flag is set, all returned data is malloced, instead
  of possibly pointing to header memory depending on type
- HEADERGET_ALLOC overrides HEADERGET_MINMEM if both specified
- adjust various header internal callers to accept flags instead of just
  minmem argument
- TODO: make sure tag extensions honor this too (all but fsnamesTag
  currently allocate anyway)

16 years agoMake rpmps generic number field 64bit, rename getter method
Panu Matilainen [Wed, 11 Jun 2008 07:31:14 +0000 (10:31 +0300)]
Make rpmps generic number field 64bit, rename getter method
- rename the parameters + internal use to more generic "number"
- rename ugly and dumb rpmProblemGetLong() to rpmProblemGetDiskNeed()
  and return rpm_loff_t
- the number field is used for some other purposes too (whether dep problem
  is for installed package), work around this for now by just defining
  rpmProblemGetDiskNeed() result value as undefined on non-disk related
  problems ;)

16 years agoEnable rpmDoDigest() to pass large file sizes
Panu Matilainen [Wed, 11 Jun 2008 06:25:02 +0000 (09:25 +0300)]
Enable rpmDoDigest() to pass large file sizes
- should probably be off_t instead of rpm_loff_t as this is lowlevel io
  business and only verification code cares about the size reported by
  it, otoh forcing 64bit always avoids having to deal with variable
  off_t type on printing.. shrug

16 years agoAdd new tag extension to retrieve filesizes as 64bit types
Panu Matilainen [Tue, 10 Jun 2008 15:11:32 +0000 (18:11 +0300)]
Add new tag extension to retrieve filesizes as 64bit types
- convert old 32bit sizes to 64bit if large sizes aren't present in header
- if large sizes are present, we malloc + copy the result to have consistent
  behavior for rpmfi

16 years agoMinimally convert rpmfiBuildFNames() to new headerGet()
Panu Matilainen [Tue, 10 Jun 2008 13:00:33 +0000 (16:00 +0300)]
Minimally convert rpmfiBuildFNames() to new headerGet()

16 years agoCallers are now well known, require non-NULL arguments
Panu Matilainen [Tue, 10 Jun 2008 12:05:31 +0000 (15:05 +0300)]
Callers are now well known, require non-NULL arguments

16 years agoAdd 64bit filesizes to header on build
Jindrich Novy [Tue, 10 Jun 2008 13:33:24 +0000 (15:33 +0200)]
Add 64bit filesizes to header on build

16 years agorpmtsUpdateDSI now uses rpm_loff_t for fileSize
Jindrich Novy [Tue, 10 Jun 2008 12:42:50 +0000 (14:42 +0200)]
rpmtsUpdateDSI now uses rpm_loff_t for fileSize

16 years agoUse 64bit data types in diskspaceInfo_s
Jindrich Novy [Tue, 10 Jun 2008 12:41:10 +0000 (14:41 +0200)]
Use 64bit data types in diskspaceInfo_s

16 years agoCreate RPMTAG_LONGFILESIZES to hold 64bit filesizes
Jindrich Novy [Tue, 10 Jun 2008 12:37:52 +0000 (14:37 +0200)]
Create RPMTAG_LONGFILESIZES to hold 64bit filesizes

16 years agoEliminate rpmfiBuildFNames() from the API
Panu Matilainen [Tue, 10 Jun 2008 11:36:12 +0000 (14:36 +0300)]
Eliminate rpmfiBuildFNames() from the API
- headerGet() with extensions enabled provides a nicer interface to
  the data, no need to expose it

16 years agoEliminate rpmfiBuildFNames() use in psm
Panu Matilainen [Tue, 10 Jun 2008 11:31:43 +0000 (14:31 +0300)]
Eliminate rpmfiBuildFNames() use in psm

16 years agoAdd RPMTAG_ORIGFILENAMES tag extension
Panu Matilainen [Tue, 10 Jun 2008 11:29:30 +0000 (14:29 +0300)]
Add RPMTAG_ORIGFILENAMES tag extension

16 years agoEliminate rpmfiBuildFNames() use in python
Panu Matilainen [Tue, 10 Jun 2008 11:24:57 +0000 (14:24 +0300)]
Eliminate rpmfiBuildFNames() use in python

16 years agoUse rpmFileHasSuffix() instead of doing it manually
Panu Matilainen [Tue, 10 Jun 2008 10:40:51 +0000 (13:40 +0300)]
Use rpmFileHasSuffix() instead of doing it manually

16 years agoConvert psm rpmInstallSourcePackage() to new headerGet()
Panu Matilainen [Tue, 10 Jun 2008 10:35:20 +0000 (13:35 +0300)]
Convert psm rpmInstallSourcePackage() to new headerGet()

16 years agoConvert psm markReplacedFiles() to new headerGet() interface
Panu Matilainen [Tue, 10 Jun 2008 10:08:11 +0000 (13:08 +0300)]
Convert psm markReplacedFiles() to new headerGet() interface

16 years agofwrite() returns size_t, use correct type
Panu Matilainen [Tue, 10 Jun 2008 07:04:52 +0000 (10:04 +0300)]
fwrite() returns size_t, use correct type

16 years agoUse correct type for strlen()
Panu Matilainen [Tue, 10 Jun 2008 07:02:52 +0000 (10:02 +0300)]
Use correct type for strlen()

16 years agoSilly signedness mismatch in pgpMpiSet()
Panu Matilainen [Tue, 10 Jun 2008 06:59:09 +0000 (09:59 +0300)]
Silly signedness mismatch in pgpMpiSet()

16 years agoUse nlink_t for hardlink count types
Panu Matilainen [Tue, 10 Jun 2008 06:54:51 +0000 (09:54 +0300)]
Use nlink_t for hardlink count types
- avoids some signed vs unsigned comparisons

16 years agoChange tag extension returns codes to match headerGet()
Panu Matilainen [Mon, 9 Jun 2008 16:00:37 +0000 (19:00 +0300)]
Change tag extension returns codes to match headerGet()

16 years agoFD_t contentLength field is useless for us too...
Panu Matilainen [Mon, 9 Jun 2008 12:42:24 +0000 (15:42 +0300)]
FD_t contentLength field is useless for us too...

16 years agoLose bunch of unused fields from FD_t
Panu Matilainen [Mon, 9 Jun 2008 12:38:28 +0000 (15:38 +0300)]
Lose bunch of unused fields from FD_t
- leftovers from times of internal http/dav etc transports..

16 years agoUse 64bit type for fdSet/GetCpioPos() in rpmio
Panu Matilainen [Mon, 9 Jun 2008 12:33:27 +0000 (15:33 +0300)]
Use 64bit type for fdSet/GetCpioPos() in rpmio

16 years agoUse 64bit type internally for printing size when reading sig header
Panu Matilainen [Mon, 9 Jun 2008 09:58:43 +0000 (12:58 +0300)]
Use 64bit type internally for printing size when reading sig header

16 years agoUse 64bit type for rpmte package size reporting
Panu Matilainen [Mon, 9 Jun 2008 09:48:34 +0000 (12:48 +0300)]
Use 64bit type for rpmte package size reporting
- RPMTAG_SIGSIZE limits to 32bit in practise currently

16 years agoUse 64bit type internally for total file size counting in build
Panu Matilainen [Mon, 9 Jun 2008 09:36:19 +0000 (12:36 +0300)]
Use 64bit type internally for total file size counting in build
- ensure we don't overflow RPMTAG_SIZE which is 32bit for now

16 years agoUse 64bit type internally for package archive size & offset
Panu Matilainen [Mon, 9 Jun 2008 09:29:07 +0000 (12:29 +0300)]
Use 64bit type internally for package archive size & offset
- cpio "new" ascii format limits individual files to UINT32_MAX, no such
  limit on the entire archive though
- RPMSIGTAG_PAYLOADSIZE is 32bit type atm, assert that the archive size
  fits to UINT32_MAX despite internal presentation being larger
- FD_t limits the real archive to rpm_off_t still

16 years agoUse rpm_loff_t for transaction callback amount+total arguments
Panu Matilainen [Mon, 9 Jun 2008 09:00:12 +0000 (12:00 +0300)]
Use rpm_loff_t for transaction callback amount+total arguments
- ought to be safe as data is only ever automatically converted to larger
  type on notify calls

16 years agoHandle NULL in str2hge()
Panu Matilainen [Mon, 9 Jun 2008 06:31:00 +0000 (09:31 +0300)]
Handle NULL in str2hge()
- at least apt-rpm expects to pass empty version as NULL to rpmdsSingle(),
  don't blow up...

16 years agorpmtdCount() knows how to handle BIN types, use it..
Panu Matilainen [Sat, 7 Jun 2008 10:17:52 +0000 (13:17 +0300)]
rpmtdCount() knows how to handle BIN types, use it..

16 years agoCouple of more 64bit format types
Panu Matilainen [Sat, 7 Jun 2008 08:43:54 +0000 (11:43 +0300)]
Couple of more 64bit format types