tools/librpm-tizen.git
15 years agoDon't fail build on too large but excluded files
Panu Matilainen [Thu, 14 Aug 2008 06:57:03 +0000 (09:57 +0300)]
Don't fail build on too large but excluded files

15 years agoUnbreak payload size tag generation on ppc (rhbz#458817)
Panu Matilainen [Wed, 13 Aug 2008 06:43:41 +0000 (09:43 +0300)]
Unbreak payload size tag generation on ppc (rhbz#458817)

15 years agoMacroize configure command/path in %configure (rhbz#458644)
Panu Matilainen [Mon, 11 Aug 2008 12:39:47 +0000 (15:39 +0300)]
Macroize configure command/path in %configure (rhbz#458644)
- add + use %{_configure} macro defaulting to ./configure, can be overridden
  for VPATH builds etc

15 years agoAdd parenthesis to make gcc happy
Panu Matilainen [Fri, 8 Aug 2008 10:53:57 +0000 (13:53 +0300)]
Add parenthesis to make gcc happy

15 years agoMissing include
Panu Matilainen [Fri, 8 Aug 2008 10:53:39 +0000 (13:53 +0300)]
Missing include

15 years agoRemember to free up resources from matchpathcon_init()
Panu Matilainen [Fri, 8 Aug 2008 10:06:28 +0000 (13:06 +0300)]
Remember to free up resources from matchpathcon_init()

15 years agoFix check for nocontext flag
Panu Matilainen [Fri, 8 Aug 2008 10:04:10 +0000 (13:04 +0300)]
Fix check for nocontext flag

15 years agoPlug memleak from %pretrans
Panu Matilainen [Fri, 8 Aug 2008 09:49:41 +0000 (12:49 +0300)]
Plug memleak from %pretrans
- te->fi needs to be freed if we replace it...

15 years agoAdd key to transaction keyring on rpmtsImportPubkey() (rhbz#457360)
Panu Matilainen [Fri, 8 Aug 2008 06:57:41 +0000 (09:57 +0300)]
Add key to transaction keyring on rpmtsImportPubkey() (rhbz#457360)
- still not 100% identical to pre-keyring behavior but enough for the
  common case
- only add keys we don't already have (rhbz#68290)

15 years agoUse rpmPubkey + methods for pubkey header generation
Panu Matilainen [Fri, 8 Aug 2008 06:32:05 +0000 (09:32 +0300)]
Use rpmPubkey + methods for pubkey header generation
- moves some of the lowlevel pubkey fiddling into rpmio where it belongs

15 years agoAdd couple of new rpmPubkey() methods
Panu Matilainen [Fri, 8 Aug 2008 06:26:30 +0000 (09:26 +0300)]
Add couple of new rpmPubkey() methods
- rpmPubkeyDig() to retrieve parsed OpenPGP parameters of key
- rpmPubkeyBase64() to return base64 encoding of the key

15 years agoSplit gpg-pubkey header generation out of rpmtsImportPubkey()
Panu Matilainen [Fri, 8 Aug 2008 06:14:53 +0000 (09:14 +0300)]
Split gpg-pubkey header generation out of rpmtsImportPubkey()

15 years agoPermit i18nstring in headerPutString()
Panu Matilainen [Thu, 7 Aug 2008 15:44:03 +0000 (18:44 +0300)]
Permit i18nstring in headerPutString()

15 years agoDon't allow multiple definition of PatchX or SourceX (rhbz#458261, rhbz#458260)
Jindrich Novy [Thu, 7 Aug 2008 12:50:49 +0000 (14:50 +0200)]
Don't allow multiple definition of PatchX or SourceX (rhbz#458261, rhbz#458260)

15 years agoClarify %buildroot in macros
Panu Matilainen [Wed, 6 Aug 2008 09:27:25 +0000 (12:27 +0300)]
Clarify %buildroot in macros
- it's no longer really optional..

15 years agoSimplify spec buildroot hysteria
Panu Matilainen [Wed, 6 Aug 2008 09:24:34 +0000 (12:24 +0300)]
Simplify spec buildroot hysteria
- BuildRoot: in spec is now really ignored
- parseSpec() uses default %{buildroot} unless overridden
- BuildRoot is forced for all builds

15 years agoAdd %sparc macro for supported Sparc architectures (rhbz#455972)
Panu Matilainen [Wed, 6 Aug 2008 05:38:57 +0000 (08:38 +0300)]
Add %sparc macro for supported Sparc architectures (rhbz#455972)

15 years agoIncrement exit code on file not found errors too (#446202)
Panu Matilainen [Tue, 5 Aug 2008 12:32:49 +0000 (15:32 +0300)]
Increment exit code on file not found errors too (#446202)

15 years agoBunch of keyring / pubkey refcounting fixes
Panu Matilainen [Mon, 4 Aug 2008 12:46:18 +0000 (15:46 +0300)]
Bunch of keyring / pubkey refcounting fixes

15 years agoUpdated Italian translation from Francesco Tombolini (rhbz#453364)
Panu Matilainen [Sat, 26 Jul 2008 08:14:45 +0000 (11:14 +0300)]
Updated Italian translation from Francesco Tombolini (rhbz#453364)

15 years agoRevert "plug memory leak in spec parsing code"
Panu Matilainen [Sat, 26 Jul 2008 07:56:02 +0000 (10:56 +0300)]
Revert "plug memory leak in spec parsing code"

This reverts commit ac3bd07ef2a11cbe9e7f7031786eebc8851c863b.
- It's not a leak, valueMakeString() doesn't make a copy of the argument
  string and the free() causes invalid memory access

15 years agoFix typo in buildroot dir definition (rhbz#456708)
Panu Matilainen [Sat, 26 Jul 2008 06:57:09 +0000 (09:57 +0300)]
Fix typo in buildroot dir definition (rhbz#456708)
- it's _buildrootdir, not buildrootdir... this caused user overridden _topdir
  not getting honored by buildroot

15 years agoplug memory leak in spec parsing code
Florian Festi [Fri, 25 Jul 2008 10:28:46 +0000 (12:28 +0200)]
plug memory leak in spec parsing code

15 years agofix parsing of empty doublequoted strings in spec file (rhbz#456103)
Florian Festi [Thu, 24 Jul 2008 15:38:11 +0000 (17:38 +0200)]
fix parsing of empty doublequoted strings in spec file (rhbz#456103)
off-by-one error

15 years agoDumb thinko breaking tar builds from relative paths (rhbz#456321)
Panu Matilainen [Thu, 24 Jul 2008 08:17:50 +0000 (11:17 +0300)]
Dumb thinko breaking tar builds from relative paths (rhbz#456321)

16 years agoFix regression in %patch handling (rhbz#455872)
Panu Matilainen [Sat, 19 Jul 2008 12:27:42 +0000 (15:27 +0300)]
Fix regression in %patch handling (rhbz#455872)
- popt doesn't think of "008" as an integer, let popt think it's a string
  as we do our own conversion to number anyway

16 years agoAdd (and use) refcounting for rpmKeyring and rpmPubkey
Panu Matilainen [Thu, 17 Jul 2008 12:50:35 +0000 (15:50 +0300)]
Add (and use) refcounting for rpmKeyring and rpmPubkey

16 years agoAdded .gitignore file to get sane git status reports
Florian Festi [Thu, 17 Jul 2008 08:37:03 +0000 (10:37 +0200)]
Added .gitignore file to get sane git status reports

16 years agoMake sure there's room for \0 (packages with no files)
Panu Matilainen [Wed, 16 Jul 2008 09:07:03 +0000 (12:07 +0300)]
Make sure there's room for \0 (packages with no files)

16 years agoMake rpmExpand() smarter wrt memory allocations
Panu Matilainen [Wed, 16 Jul 2008 07:52:33 +0000 (10:52 +0300)]
Make rpmExpand() smarter wrt memory allocations
- precalculate unexpanded size and allocate enough for that plus MACROBUFSIZ
  for expansion
- typical allocation is way smaller than what gets allocated "just in case",
  calculate expanded size and realloc to actual size to avoid wasting
  memory

16 years agoEliminate another unnecessary temp variable
Panu Matilainen [Wed, 16 Jul 2008 07:33:57 +0000 (10:33 +0300)]
Eliminate another unnecessary temp variable
- do all the copying inside a loop

16 years agoEliminate unnecessary variable
Panu Matilainen [Wed, 16 Jul 2008 07:24:05 +0000 (10:24 +0300)]
Eliminate unnecessary variable
- leftover from static buffer times..

16 years agoMacro argument handling regression (rhbz#455333)
Panu Matilainen [Wed, 16 Jul 2008 06:40:10 +0000 (09:40 +0300)]
Macro argument handling regression (rhbz#455333)
- expandMacro() wants the next \0 character to be returned, which might
  or might not be the same as lastc passed to grabArgs()
- use memcpy() instead of memmove() for the copy, the areas can't overlap

16 years agoAdjust querytags expected results for autotests
Panu Matilainen [Mon, 14 Jul 2008 13:23:02 +0000 (16:23 +0300)]
Adjust querytags expected results for autotests

16 years agoDon't put unimplemented tags into tagtable
Panu Matilainen [Mon, 14 Jul 2008 13:21:15 +0000 (16:21 +0300)]
Don't put unimplemented tags into tagtable
- no point in exposing unimplemnted (ours or somebody elses) tags to users

16 years agoMark unimplemented tags as such in tag table
Panu Matilainen [Mon, 14 Jul 2008 13:16:41 +0000 (16:16 +0300)]
Mark unimplemented tags as such in tag table

16 years agoFix mono dependency extraction
Panu Matilainen [Mon, 14 Jul 2008 08:53:10 +0000 (11:53 +0300)]
Fix mono dependency extraction
- use "Mono/.Net assembly" instead of "PE executable" for detection,
  later file reports bitness (eg "PE32 executable"), we just care if its
  mono or not. This is compatible with older libmagic too.

16 years agoNSS uses unsigned int, not size_t for hash lengths
Panu Matilainen [Sat, 12 Jul 2008 14:57:51 +0000 (17:57 +0300)]
NSS uses unsigned int, not size_t for hash lengths
- broke ppc64 in entertaining ways...

16 years agoUpdated Polish translation (Piotr Drąg)
Panu Matilainen [Fri, 11 Jul 2008 10:37:38 +0000 (13:37 +0300)]
Updated Polish translation (Piotr Drąg)

16 years agoDecompressor clarifications.
Ville Skyttä [Tue, 1 Jul 2008 17:22:02 +0000 (20:22 +0300)]
Decompressor clarifications.

Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
16 years agoInclude rpmlib.h from rpmcli.h, legacy stuff expects it there..
Panu Matilainen [Wed, 9 Jul 2008 08:56:22 +0000 (11:56 +0300)]
Include rpmlib.h from rpmcli.h, legacy stuff expects it there..

16 years agoCheck for _RPM_4_4_COMPAT in rpmlib.h too
Panu Matilainen [Wed, 9 Jul 2008 08:55:57 +0000 (11:55 +0300)]
Check for _RPM_4_4_COMPAT in rpmlib.h too
- limits the chances of compat includes not working due to include order
  a bit

16 years agoInclude legacy compat from rpmlib.h to cover maximum ground
Panu Matilainen [Tue, 8 Jul 2008 15:35:56 +0000 (18:35 +0300)]
Include legacy compat from rpmlib.h to cover maximum ground
- rpmlib.h is the first thing any old rpm api user includes so this should
  cover most cases (only if enabled)

16 years agoAdd compat definitions for renamed string functions too
Panu Matilainen [Tue, 8 Jul 2008 15:35:07 +0000 (18:35 +0300)]
Add compat definitions for renamed string functions too

16 years agoMissing cplusplus-wrappers in rpmtd
Panu Matilainen [Tue, 8 Jul 2008 15:13:42 +0000 (18:13 +0300)]
Missing cplusplus-wrappers in rpmtd

16 years agoBunch of dumb macros to make up for renamed functions
Panu Matilainen [Tue, 8 Jul 2008 15:11:28 +0000 (18:11 +0300)]
Bunch of dumb macros to make up for renamed functions
- should arrange deprecation warnings on them too...

16 years agoAdd deprecation markers for hge etc vector prototypes
Panu Matilainen [Tue, 8 Jul 2008 13:49:54 +0000 (16:49 +0300)]
Add deprecation markers for hge etc vector prototypes

16 years agoAdd deprecation warnings to all legacy types
Panu Matilainen [Tue, 8 Jul 2008 13:45:44 +0000 (16:45 +0300)]
Add deprecation warnings to all legacy types

16 years agoCompat typedef for Spec -> rpmSpec rename
Panu Matilainen [Tue, 8 Jul 2008 13:43:46 +0000 (16:43 +0300)]
Compat typedef for Spec -> rpmSpec rename

16 years agoAdd mappings from hTAG_t and friends to legacy interfaces
Panu Matilainen [Tue, 8 Jul 2008 13:42:32 +0000 (16:42 +0300)]
Add mappings from hTAG_t and friends to legacy interfaces

16 years agoLimit the exposure of rpmlegacy.h stuff to bare minimum
Panu Matilainen [Tue, 8 Jul 2008 13:41:24 +0000 (16:41 +0300)]
Limit the exposure of rpmlegacy.h stuff to bare minimum

16 years agoShove header legacy interfaces into rpmlegacy.h
Panu Matilainen [Tue, 8 Jul 2008 13:37:23 +0000 (16:37 +0300)]
Shove header legacy interfaces into rpmlegacy.h
- get them out of sight from main header.h
- turn headerSprintf() into macro around headerFormat(), that way
  rpmTagTable and rpmHeaderFormats lossage can be hidden away as far
  as headerSprintf() use is concerned

16 years agoAdd a new legacy compatibility header, kill rpmints.h
Panu Matilainen [Tue, 8 Jul 2008 13:23:22 +0000 (16:23 +0300)]
Add a new legacy compatibility header, kill rpmints.h
- build-time generated rpmints.h causes issues with distcheck and is
  not really worth the trouble
- we have all sorts of legacy junk to deal with, sticking them all into
  rpmints.h would be just wrong...

16 years agoInitialize optCon
Jindrich Novy [Tue, 8 Jul 2008 15:46:54 +0000 (17:46 +0200)]
Initialize optCon
- one could easily segfault the doPatchMacro() code without
  the optCon initialization (particularly with jump to "exit" label)

16 years agoMake the default fuzz for %patch is now configurable via macro
Jindrich Novy [Tue, 8 Jul 2008 15:45:12 +0000 (17:45 +0200)]
Make the default fuzz for %patch is now configurable via macro
- the macro is _default_patch_fuzz

16 years agoUpdate translations
Panu Matilainen [Tue, 8 Jul 2008 10:00:20 +0000 (13:00 +0300)]
Update translations

16 years agoAdd ISA-stuff for ia64
Panu Matilainen [Tue, 8 Jul 2008 09:59:51 +0000 (12:59 +0300)]
Add ISA-stuff for ia64

16 years agoMissing const in parseUnsignedNum()
Panu Matilainen [Mon, 7 Jul 2008 15:11:59 +0000 (18:11 +0300)]
Missing const in parseUnsignedNum()

16 years agoTeach Fflush() about lzdio
Panu Matilainen [Mon, 7 Jul 2008 15:09:49 +0000 (18:09 +0300)]
Teach Fflush() about lzdio

16 years agoMake Source0: equal to Source: again
Jindrich Novy [Mon, 7 Jul 2008 12:49:33 +0000 (14:49 +0200)]
Make Source0: equal to Source: again

16 years agoUse proper type in format
Jindrich Novy [Mon, 7 Jul 2008 10:59:03 +0000 (12:59 +0200)]
Use proper type in format

16 years agoRemove useless argument to format, d'oh
Jindrich Novy [Mon, 7 Jul 2008 08:21:30 +0000 (10:21 +0200)]
Remove useless argument to format, d'oh

16 years agoEliminate couple of timedRead() uses where we control how fd is opened
Panu Matilainen [Mon, 7 Jul 2008 10:28:04 +0000 (13:28 +0300)]
Eliminate couple of timedRead() uses where we control how fd is opened

16 years agoMake verifyAttrs and virtualFileAttributes static
Panu Matilainen [Mon, 7 Jul 2008 07:52:33 +0000 (10:52 +0300)]
Make verifyAttrs and virtualFileAttributes static
- nothing outside files.c needs

16 years agoKick out ftpStrerror() and related error code defines
Panu Matilainen [Mon, 7 Jul 2008 07:48:06 +0000 (10:48 +0300)]
Kick out ftpStrerror() and related error code defines
- our url-retrieval error codes depend on the helper used which is
  configurable via macros so hardcoding eg curl codes wont work either
- need to figure out something better, pass helper error messages through
  FD_t or something...

16 years agoKick out now unused printNewSpecfile()
Panu Matilainen [Mon, 7 Jul 2008 07:42:55 +0000 (10:42 +0300)]
Kick out now unused printNewSpecfile()

16 years agoKick out ancient, useless and hidden --specedit option
Panu Matilainen [Mon, 7 Jul 2008 07:17:21 +0000 (10:17 +0300)]
Kick out ancient, useless and hidden --specedit option

16 years agoRemember to remove ugid.c from POTFILES
Panu Matilainen [Fri, 4 Jul 2008 15:18:55 +0000 (18:18 +0300)]
Remember to remove ugid.c from POTFILES

16 years agoStuff rpmio/ugid.[ch] contents to lib/misc.[ch]
Panu Matilainen [Fri, 4 Jul 2008 13:09:42 +0000 (16:09 +0300)]
Stuff rpmio/ugid.[ch] contents to lib/misc.[ch]
- no uses outside librpm itself, and there they can be hidden away from
  exported ABI whereas in librpmio they cant

16 years agoMake ufdClose() static, nothing outside rpmio.c needs directly
Panu Matilainen [Fri, 4 Jul 2008 12:02:30 +0000 (15:02 +0300)]
Make ufdClose() static, nothing outside rpmio.c needs directly

16 years agoRemove unused ufdGetFile() from librpmio
Panu Matilainen [Fri, 4 Jul 2008 12:00:48 +0000 (15:00 +0300)]
Remove unused ufdGetFile() from librpmio

16 years agoRemove unused _url_debug
Panu Matilainen [Fri, 4 Jul 2008 11:53:02 +0000 (14:53 +0300)]
Remove unused _url_debug

16 years agoBump version to resemble library versioning
Panu Matilainen [Fri, 4 Jul 2008 11:52:47 +0000 (14:52 +0300)]
Bump version to resemble library versioning

16 years agoReally make fuzz=0 default for patches
Jindrich Novy [Fri, 4 Jul 2008 13:00:09 +0000 (15:00 +0200)]
Really make fuzz=0 default for patches
- and finish the Patch and Source fixup

16 years agoDon't treat Patch and Source as Patch0 and Source0
Jindrich Novy [Fri, 4 Jul 2008 12:58:38 +0000 (14:58 +0200)]
Don't treat Patch and Source as Patch0 and Source0

16 years agoRemove rpmcache from repository
Panu Matilainen [Fri, 4 Jul 2008 11:33:23 +0000 (14:33 +0300)]
Remove rpmcache from repository
- next to nobody even knew about it, much less used it...
- hardly useful now that solvedb is gone

16 years agoRemove solvedb API and other related stuff
Panu Matilainen [Fri, 4 Jul 2008 11:22:06 +0000 (14:22 +0300)]
Remove solvedb API and other related stuff
- nobody has used the solvedb for anything in years
- the mechanism + rpmcache are horribly broken on multilib
- solvedb is way too heavyweight to be really usable as a general mechanism
- solver callback hook left in place as that could in theory be usable still
- we need something better to replace this all, getting rid of it now
  so we're not stuck with the API forever

16 years agoKill of rpmtsAvailable()
Panu Matilainen [Fri, 4 Jul 2008 11:11:47 +0000 (14:11 +0300)]
Kill of rpmtsAvailable()
- long since deprecated and nothing uses it, might as well go

16 years agoEnforce conflicts on colorless files always
Panu Matilainen [Fri, 4 Jul 2008 10:01:39 +0000 (13:01 +0300)]
Enforce conflicts on colorless files always
- silently swallowing conflicting files when they happen to be in the
  same (suitable colored) transaction but conflicting when installed
  separately is nothing but inconsistent
- partial fix for rhbz#190209

16 years agorpmfiFNlink() returns unsigned int
Panu Matilainen [Fri, 4 Jul 2008 06:17:33 +0000 (09:17 +0300)]
rpmfiFNlink() returns unsigned int

16 years agoCouple of type corrections
Panu Matilainen [Fri, 4 Jul 2008 06:11:20 +0000 (09:11 +0300)]
Couple of type corrections
- use rpmTag, rpmsenseFlags instead of int32_t

16 years agoUse unsigned integer for epoch, remove unnecessary static
Panu Matilainen [Fri, 4 Jul 2008 06:07:19 +0000 (09:07 +0300)]
Use unsigned integer for epoch, remove unnecessary static

16 years agoParameter name + doc mismatch on rpmVerifySignature()
Panu Matilainen [Thu, 3 Jul 2008 14:44:43 +0000 (17:44 +0300)]
Parameter name + doc mismatch on rpmVerifySignature()

16 years agoChange headerPutString() arg name to match the others
Panu Matilainen [Thu, 3 Jul 2008 14:44:13 +0000 (17:44 +0300)]
Change headerPutString() arg name to match the others
- doxygen whines a bit less..

16 years agoPlug leaks in selinux context handling in fsm
Panu Matilainen [Thu, 3 Jul 2008 14:14:45 +0000 (17:14 +0300)]
Plug leaks in selinux context handling in fsm

16 years agoPlug a memleak on erasure
Panu Matilainen [Thu, 3 Jul 2008 14:01:52 +0000 (17:01 +0300)]
Plug a memleak on erasure
- on erasure the order of things in ts->order is reverse from that of
  rpmtsi-iteration, causing rpmtsiNext() to abort earlier than it should
  when things are removed underneath it
- just walk the ts->order table without iteration, it doesn't make any
  difference here

16 years agoMake all transaction callback notifications go through rpmtsNotify()
Panu Matilainen [Thu, 3 Jul 2008 12:30:04 +0000 (15:30 +0300)]
Make all transaction callback notifications go through rpmtsNotify()
- single point to control how callbacks are made

16 years agoOnly try to pubkeys from rpmdb if we non-db keys didn't exist
Panu Matilainen [Thu, 3 Jul 2008 06:11:55 +0000 (09:11 +0300)]
Only try to pubkeys from rpmdb if we non-db keys didn't exist
- try to avoid opening the db unnecessarily, if the keys have been migrated
  out of the db, the db probably only has duplicates (right? :)

16 years agoDon't leak memory on duplicate pubkeys
Panu Matilainen [Wed, 2 Jul 2008 16:07:06 +0000 (19:07 +0300)]
Don't leak memory on duplicate pubkeys

16 years agoDon't leak memory on python expandMacro()
Panu Matilainen [Wed, 2 Jul 2008 16:00:56 +0000 (19:00 +0300)]
Don't leak memory on python expandMacro()

16 years agoPlug a dumb memleak that has crept into rpmReadPackageFile()
Panu Matilainen [Wed, 2 Jul 2008 15:49:05 +0000 (18:49 +0300)]
Plug a dumb memleak that has crept into rpmReadPackageFile()
- jumps to exit from very early on, make sure sigtd is reset early so
  calling rpmtdFreeData() is safe

16 years agoChange rpmts keyring get/set interface to more transparent handling
Panu Matilainen [Wed, 2 Jul 2008 12:08:51 +0000 (15:08 +0300)]
Change rpmts keyring get/set interface to more transparent handling
- add extra parameter to rpmtsGetKeyring() to automatically load up default
  keyring if not already set
- rpmtsSetKeyring() with NULL keyring just frees up current keyring
- adjust callers wrt the change
- allows more transparent action for various "legacy" code-paths

16 years agoAdd documentation for keyring
Panu Matilainen [Wed, 2 Jul 2008 11:24:20 +0000 (14:24 +0300)]
Add documentation for keyring

16 years agoMake rpmkeyring.h public header
Panu Matilainen [Wed, 2 Jul 2008 11:23:30 +0000 (14:23 +0300)]
Make rpmkeyring.h public header

16 years agoAdd docs for the new rpmts methods, deprecate rpmtsFindPubkey()
Panu Matilainen [Wed, 2 Jul 2008 10:55:50 +0000 (13:55 +0300)]
Add docs for the new rpmts methods, deprecate rpmtsFindPubkey()

16 years agoLoad pubkeys from both files and rpmdb for now
Panu Matilainen [Wed, 2 Jul 2008 10:48:00 +0000 (13:48 +0300)]
Load pubkeys from both files and rpmdb for now
- easy enough and doesn't cost really anything
- at some point, start warning about legacy gpg-keys in rpmdb, suggest
  conversion method / do it automatically & such...

16 years agoSome keyring improvements
Panu Matilainen [Wed, 2 Jul 2008 10:31:12 +0000 (13:31 +0300)]
Some keyring improvements
- keep keyring sorted by keyid, use bsearch for key lookups
- check for key in keyring before adding it to avoid dupes
- actually check that pubkey parameters match the signature on keyring
  lookup like was done in rpmtsFindPubkey()

16 years agoEliminate remaining signature checking bits from rpmts
Panu Matilainen [Tue, 1 Jul 2008 14:35:21 +0000 (17:35 +0300)]
Eliminate remaining signature checking bits from rpmts
- rpmdb-specific rpmtsFindPubkey() no longer needed for anything, and
  neither are the cached packets and stuff

16 years agoUse keyring even when using pubkeys from rpmdb
Panu Matilainen [Tue, 1 Jul 2008 14:32:11 +0000 (17:32 +0300)]
Use keyring even when using pubkeys from rpmdb
- build-time switchable, could easily be run-time too

16 years agoPass keyring, not the full ts to lowlevel signature routines
Panu Matilainen [Tue, 1 Jul 2008 14:00:04 +0000 (17:00 +0300)]
Pass keyring, not the full ts to lowlevel signature routines
- lazy loading of default keyring on ts iteration works nicely for
  everything but package signature verification which doesn't access the
  db now that the keys are not in the db anymore
- make rpmtsSetKeyring(NULL) load the default keyring, a bit ugly but
  it'll have to do for now