Commit Graph

30 Commits

Author SHA1 Message Date
Florian Festi 51c96db046 Kill RPMTAG_FSNAMES and RPMTAG_FSSIZES and everything implementing them 2010-02-03 16:27:00 +01:00
Panu Matilainen 78335417a0 Sanitize i18nTag() when NLS disabled
- if NLS is disabled, the whole thing becomes just a plain old headerGet()
2010-01-05 14:14:23 +02:00
Panu Matilainen 1567738fed Always return malloced data from i18n extensions for consistency 2009-12-07 09:12:44 +02:00
Panu Matilainen d0eaa7c048 Add RPMTAG_EPOCHNUM tag extension
- return RPMTAG_EPOCH but convert non-existent epoch to 0, as rpm internals
  treat it
2009-11-20 10:32:47 +02:00
Panu Matilainen df61816c75 Add RPMTAG_VERBOSE extension
- hack to permit different query formatting based on rpm's verbosity level
2009-10-12 11:02:56 +03:00
Panu Matilainen d846e6b0f8 Don't add dependency type into file requires and provides (RhBug:523282)
- unintended change in commit 3d8656f040
2009-09-15 08:45:14 +03:00
Panu Matilainen 3661e1d525 Add header color tag extension, ie headerGetColor()
- use common numeric tag generation helper for header color
  and dbinstance tags
2009-09-02 13:57:54 +03:00
Panu Matilainen b5bc388ee3 Eliminate uses of headerNVR() and friends in librpm (and python) code 2009-09-02 12:06:34 +03:00
Panu Matilainen a5a9208b69 Add tag extensions for common name-[epoch:]version-release[.arch] combos
- RPMTAG_NVRA same as rpm5.org, others are new tags
2009-09-02 10:49:00 +03:00
Panu Matilainen 0fd95da2e7 Add dbinstance tag extension (port from rpm5.org) 2009-09-01 15:08:58 +03:00
Panu Matilainen e18aedbf97 Pass headerGet flags to extensions too (unused for now) 2009-07-03 14:21:01 +03:00
Panu Matilainen e232344a49 Pay more attention to tag extension return codes
- behave like headerGet() does and return failure if there's no data
  to return
- some cases where we used to return nothing previously now return (none)
  in query, but the former behavior was inconsistent between tags
- not sure if (none) is really wanted for a return of no value always,
  but at least it's consistent now
2008-12-04 21:55:52 +02:00
Panu Matilainen 1f61d628fd Fix triggerconds return when no data is there (rhbz#474550) 2008-12-04 21:40:36 +02:00
Panu Matilainen f01ed5459d Convert in-tree users of rpmfiNew() to use flag names
- easier to grep for than scareMem, preparing for further flags
2008-10-30 13:47:40 +02:00
Panu Matilainen 9879f8440d 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
2008-06-12 17:09:35 +03:00
Panu Matilainen 4c6f6d88b8 Add more 64bit size tags + tag extensions for converting from old values 2008-06-12 15:05:43 +03:00
Panu Matilainen 3c5a8a7046 Move 32 to 64 bit tag conversion to helper function 2008-06-12 15:01:58 +03:00
Panu Matilainen 5f361fe6a1 Use HEADERGET_ALLOC instead of manual copy in longfilesizesTag() 2008-06-12 14:16:28 +03:00
Panu Matilainen 6c4772537d 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
2008-06-10 18:11:32 +03:00
Panu Matilainen 9130995df6 Minimally convert rpmfiBuildFNames() to new headerGet() 2008-06-10 16:50:18 +03:00
Panu Matilainen b0885bd0f2 Callers are now well known, require non-NULL arguments 2008-06-10 16:50:18 +03:00
Panu Matilainen 6b3e0cc97b Eliminate rpmfiBuildFNames() from the API
- headerGet() with extensions enabled provides a nicer interface to
  the data, no need to expose it
2008-06-10 14:36:12 +03:00
Panu Matilainen a2df078607 Add RPMTAG_ORIGFILENAMES tag extension 2008-06-10 14:29:30 +03:00
Panu Matilainen 46d4daee45 Change tag extension returns codes to match headerGet() 2008-06-09 19:00:37 +03:00
Panu Matilainen 77c25969a9 Convert triggertypeTag() to new headerGet() 2008-05-26 12:40:43 +03:00
Panu Matilainen d2ef49038a Include rpmtypes.h first instead of rpmtag.h everywhere 2008-05-21 15:59:39 +03:00
Panu Matilainen 3d8656f040 Convert rpmfiBuildFDeps() into fooTag() style interface
- fileprovideTag() and filerequireTag() are just thin wrappers around
  filedepTag()
- simplify things a good bit by not bothering to create a single allocation
  blob for the return
2008-05-21 13:37:32 +03:00
Panu Matilainen 0021f8a18f Lose rpmfiBuildFClasses() completely
- only fileclassTag() needs it, move it inline there
- simplify a lot: as we now can deallocate regular string arrays too,
  don't bother creating a single allocation blob for the classes
2008-05-21 12:45:34 +03:00
Panu Matilainen 82b89c3b0c Eliminate rpmfiBuildFClasses() and rpmfiBuildFDepts() from the API+ABI
- both are only needed by tag extensions, move them there
- headerGet() with extensions enabled provides a nicer API for accessing
  the data anyway
2008-05-21 12:04:51 +03:00
Panu Matilainen 7d38c6e2d8 Split tag extensions out of formats.c
- they have practically nothing in common now..
2008-05-21 12:04:51 +03:00