tools/librpm-tizen.git
16 years agoDrop non-existing librpmmisc from rpm.pc
Panu Matilainen [Sat, 8 Dec 2007 14:12:10 +0000 (16:12 +0200)]
Drop non-existing librpmmisc from rpm.pc

16 years agoSwitch to <rpm/foo.h> style for public headers
Panu Matilainen [Sat, 8 Dec 2007 12:02:32 +0000 (14:02 +0200)]
Switch to <rpm/foo.h> style for public headers
- adjust include paths accordingly

16 years agoAdd RPMCALLBACK_SCRIPT_ERROR callback type
Panu Matilainen [Fri, 7 Dec 2007 14:19:21 +0000 (16:19 +0200)]
Add RPMCALLBACK_SCRIPT_ERROR callback type
- TS callback has a better chance at doing something semi-intelligent
  on scriptlet failure than rpmlog callback
- Hijack "amount" for script tag that failed, "total" for exit code
  which might be pretty much anything: waitpid child, actual exit status or
  lua error... not probably very useful in the callback but...
- Notify before logging so users can catch the actual error message
  on next rpmlog callback.. or something

16 years agoScriptlet (name) handling tweaks
Panu Matilainen [Fri, 7 Dec 2007 13:32:11 +0000 (15:32 +0200)]
Scriptlet (name) handling tweaks
- look up scriptlet names just once inside runScript()
- map trigger types to their real names too

16 years agoAdd getter methods for rpmlogRec items (message + level)
Panu Matilainen [Fri, 7 Dec 2007 12:00:34 +0000 (14:00 +0200)]
Add getter methods for rpmlogRec items (message + level)

16 years agoRename RPMLOG_CONT to RPMLOG_DEFAULT to make purpose clearer (hopefully ;)
Panu Matilainen [Fri, 7 Dec 2007 11:31:31 +0000 (13:31 +0200)]
Rename RPMLOG_CONT to RPMLOG_DEFAULT to make purpose clearer (hopefully ;)

16 years agoLogging enhancements
Panu Matilainen [Fri, 7 Dec 2007 11:16:45 +0000 (13:16 +0200)]
Logging enhancements
- add parameters to rpmlogCallback: current log record pointer +
  optional user data
- callback return flags to enable/disable default logging behavior and
  to perform exit() after cleaning up
- add method for retrieving prefix string for a given message priority
- move default logging behavior out of rpmlog() proper

16 years agoMake rpmLogRec opaque
Panu Matilainen [Fri, 7 Dec 2007 09:43:06 +0000 (11:43 +0200)]
Make rpmLogRec opaque

16 years agoFix misleading indentation
Panu Matilainen [Fri, 7 Dec 2007 09:34:33 +0000 (11:34 +0200)]
Fix misleading indentation

16 years agoDon't do tilde expansion if HOME not set
Panu Matilainen [Fri, 7 Dec 2007 09:33:18 +0000 (11:33 +0200)]
Don't do tilde expansion if HOME not set
- If you dont have a home, glob() will go out of its way to give you one,
  even a wrong one.  This isn't good when daemons etc have purposefully
  unset HOME...

16 years agoMore rpmerr.h removal fallout
Panu Matilainen [Fri, 7 Dec 2007 08:57:39 +0000 (10:57 +0200)]
More rpmerr.h removal fallout
- use rpmRC types where appropriate

16 years agoYet more rpmbuild fixups from rpmerr.h removal (partly from rpm5.org)
Panu Matilainen [Fri, 7 Dec 2007 08:43:53 +0000 (10:43 +0200)]
Yet more rpmbuild fixups from rpmerr.h removal (partly from rpm5.org)
- additionally use rpmRC return types instead of numbers where appropriate

16 years agorpm5.org: fixup spec parsing from rpmerr.h removal
Panu Matilainen [Fri, 7 Dec 2007 07:53:53 +0000 (09:53 +0200)]
rpm5.org: fixup spec parsing from rpmerr.h removal
- renumber rpmParseState enums to leave room for error codes

16 years agorpm5.org: fixup various places in rpmbuild from rpmerr.h elimination
Panu Matilainen [Fri, 7 Dec 2007 07:28:39 +0000 (09:28 +0200)]
rpm5.org: fixup various places in rpmbuild from rpmerr.h elimination

16 years agorpm5.org: use pid_t, not int in build doScript
Panu Matilainen [Fri, 7 Dec 2007 07:01:25 +0000 (09:01 +0200)]
rpm5.org: use pid_t, not int in build doScript

16 years agoFix query return codes (rhbz#244236)
Panu Matilainen [Wed, 5 Dec 2007 13:56:18 +0000 (15:56 +0200)]
Fix query return codes (rhbz#244236)
- count + skip over errors in rpmgiNext() instead of stopping iteration
- add rpmgiNumErrors() for retrieving errors, use it in query

16 years agoOnly platform.in is to be included in dist, dont use wildcard
Panu Matilainen [Wed, 5 Dec 2007 10:57:07 +0000 (12:57 +0200)]
Only platform.in is to be included in dist, dont use wildcard

16 years agoRename apidocs to hackingdocs, only build on request
Panu Matilainen [Wed, 5 Dec 2007 09:56:33 +0000 (11:56 +0200)]
Rename apidocs to hackingdocs, only build on request

16 years agobase64.h missing from librpmio sources
Panu Matilainen [Wed, 5 Dec 2007 09:27:50 +0000 (11:27 +0200)]
base64.h missing from librpmio sources

16 years agoUpdate potfiles wrt recent changes, regenerate translations
Panu Matilainen [Wed, 5 Dec 2007 08:37:38 +0000 (10:37 +0200)]
Update potfiles wrt recent changes, regenerate translations

16 years agoMatch filestage strings with the fact that we dont use "rpc" anymore
Panu Matilainen [Tue, 4 Dec 2007 09:28:16 +0000 (11:28 +0200)]
Match filestage strings with the fact that we dont use "rpc" anymore

16 years agoEliminate debug junk from the API
Panu Matilainen [Tue, 4 Dec 2007 09:25:46 +0000 (11:25 +0200)]
Eliminate debug junk from the API
- add some helper macros to accomplish the same, easy to enable / disable
  as needed

16 years agoDocument rpmtsScoreGetEntry() parameter to please doxygen
Panu Matilainen [Mon, 3 Dec 2007 16:47:40 +0000 (18:47 +0200)]
Document rpmtsScoreGetEntry() parameter to please doxygen

16 years agoRemove double documentation from header methods to make doxygen shut up
Panu Matilainen [Mon, 3 Dec 2007 16:44:48 +0000 (18:44 +0200)]
Remove double documentation from header methods to make doxygen shut up

16 years agoFix couple of doxygen file paths, remove obsolete comment
Panu Matilainen [Mon, 3 Dec 2007 16:39:56 +0000 (18:39 +0200)]
Fix couple of doxygen file paths, remove obsolete comment

16 years agoRename _rpmdbMatchIterator -> rpmdbMatchIterator_s
Panu Matilainen [Mon, 3 Dec 2007 14:58:16 +0000 (16:58 +0200)]
Rename _rpmdbMatchIterator -> rpmdbMatchIterator_s
- consistency with other similar constructs

16 years agoSplit RPMTAG_* and related functions out of rpmlib.h to rpmtag.h
Panu Matilainen [Mon, 3 Dec 2007 08:47:25 +0000 (10:47 +0200)]
Split RPMTAG_* and related functions out of rpmlib.h to rpmtag.h

16 years agoSplit rpmte internals to separate header
Panu Matilainen [Mon, 3 Dec 2007 08:15:46 +0000 (10:15 +0200)]
Split rpmte internals to separate header
- avoid unnecessary include-order issues
- stop define-games for internals access

16 years agoDuh, remember to add rpmfi_internal.h to sources..
Panu Matilainen [Mon, 3 Dec 2007 08:09:37 +0000 (10:09 +0200)]
Duh, remember to add rpmfi_internal.h to sources..

16 years agoMove rpmprobFilterFlag enums to rpmps where they logically belong
Panu Matilainen [Sun, 2 Dec 2007 21:02:33 +0000 (23:02 +0200)]
Move rpmprobFilterFlag enums to rpmps where they logically belong

16 years agoMove rpmsenseFlag enums to rpmds where they logically belong
Panu Matilainen [Sun, 2 Dec 2007 20:59:38 +0000 (22:59 +0200)]
Move rpmsenseFlag enums to rpmds where they logically belong

16 years agoMove rpmtransFlags enums to rpmts.h where it logically belongs
Panu Matilainen [Sun, 2 Dec 2007 20:54:14 +0000 (22:54 +0200)]
Move rpmtransFlags enums to rpmts.h where it logically belongs

16 years agoMove file action enums to rpmfi where they logically belong
Panu Matilainen [Sun, 2 Dec 2007 20:50:55 +0000 (22:50 +0200)]
Move file action enums to rpmfi where they logically belong

16 years agoMove RPMFILE_* file attributes to rpmfi.h
Panu Matilainen [Sun, 2 Dec 2007 20:00:18 +0000 (22:00 +0200)]
Move RPMFILE_* file attributes to rpmfi.h

16 years agoSplit rpmfi internals to separate header
Panu Matilainen [Mon, 3 Dec 2007 07:46:51 +0000 (09:46 +0200)]
Split rpmfi internals to separate header

16 years agoMove file state defs to rpmfi where they logically belong
Panu Matilainen [Sun, 2 Dec 2007 10:19:24 +0000 (12:19 +0200)]
Move file state defs to rpmfi where they logically belong

16 years agoMove file type enums to rpmfi where it logically belongs
Panu Matilainen [Sun, 2 Dec 2007 10:11:46 +0000 (12:11 +0200)]
Move file type enums to rpmfi where it logically belongs

16 years agoDrop RPC from apidocs..
Panu Matilainen [Mon, 3 Dec 2007 14:35:33 +0000 (16:35 +0200)]
Drop RPC from apidocs..

16 years agoUse regular POSIX functions instead of "RPC" clones
Panu Matilainen [Mon, 3 Dec 2007 14:33:18 +0000 (16:33 +0200)]
Use regular POSIX functions instead of "RPC" clones
- we only care about local files

16 years agoMore rpmlead exorcizing
Panu Matilainen [Sat, 1 Dec 2007 19:06:00 +0000 (21:06 +0200)]
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

16 years agoErm, stuff headerIsSource() implementation to hdrNVR with other cruft
Panu Matilainen [Sat, 1 Dec 2007 19:01:51 +0000 (21:01 +0200)]
Erm, stuff headerIsSource() implementation to hdrNVR with other cruft
- avoid dragging rpmlib for RPMTAG_* into header.h

16 years agoUse headerIsSource() everywhere for determining package type
Panu Matilainen [Sat, 1 Dec 2007 17:29:57 +0000 (19:29 +0200)]
Use headerIsSource() everywhere for determining package type

16 years agoSilly helper method for determining if a header is source or binary
Panu Matilainen [Sat, 1 Dec 2007 17:25:10 +0000 (19:25 +0200)]
Silly helper method for determining if a header is source or binary

16 years agoLose leftover davRead() related hack
Panu Matilainen [Sat, 1 Dec 2007 16:41:14 +0000 (18:41 +0200)]
Lose leftover davRead() related hack

16 years agoMake rpmlead opaque, add methods to deal with it
Panu Matilainen [Sat, 1 Dec 2007 16:31:09 +0000 (18:31 +0200)]
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

16 years agoInclude sanity
Panu Matilainen [Sat, 1 Dec 2007 10:47:30 +0000 (12:47 +0200)]
Include sanity
- don't pull in rpmio into rpmpgp.h
- make rpmpgp.h standalone (needs rpmints and stdio)
- rpmfileutil needs rpmio (makes sense, huh...)

16 years agoMake rpmDoDigest() honor algorithm parameter
Panu Matilainen [Sat, 1 Dec 2007 10:32:30 +0000 (12:32 +0200)]
Make rpmDoDigest() honor algorithm parameter

16 years agoDon't include idtx.h in rpmcli.h
Panu Matilainen [Sat, 1 Dec 2007 08:42:22 +0000 (10:42 +0200)]
Don't include idtx.h in rpmcli.h
- nothing needs it there, include directly where needed instead

16 years agoMove headerN(E)VR(A) declarations from rpmlib.h to header.h
Panu Matilainen [Sat, 1 Dec 2007 08:31:20 +0000 (10:31 +0200)]
Move headerN(E)VR(A) declarations from rpmlib.h to header.h

16 years agoMove hGet*() funcs from rpmts, rename to headerGet*()
Panu Matilainen [Sat, 1 Dec 2007 08:29:44 +0000 (10:29 +0200)]
Move hGet*() funcs from rpmts, rename to headerGet*()

16 years agoAdd bunch of missing rpmts doxygen groupings
Panu Matilainen [Sat, 1 Dec 2007 08:16:20 +0000 (10:16 +0200)]
Add bunch of missing rpmts doxygen groupings

16 years ago(no)dirtokens is just a build-time option now
Panu Matilainen [Sat, 1 Dec 2007 08:09:54 +0000 (10:09 +0200)]
(no)dirtokens is just a build-time option now

16 years agoAdd separate public header for callback declarations
Panu Matilainen [Sat, 1 Dec 2007 08:08:13 +0000 (10:08 +0200)]
Add separate public header for callback declarations
- rpmmessages is empty, lose it
- adjust includes

16 years agoLose url callback mechanism
Panu Matilainen [Sat, 1 Dec 2007 07:38:33 +0000 (09:38 +0200)]
Lose url callback mechanism
- not used and cant support it with external helper anyhow

16 years agoMove logging related macros rpmlog, adjust includes
Panu Matilainen [Fri, 30 Nov 2007 21:08:38 +0000 (23:08 +0200)]
Move logging related macros rpmlog, adjust includes

16 years agorpmurl and argv doxygen groupings
Panu Matilainen [Fri, 30 Nov 2007 20:13:15 +0000 (22:13 +0200)]
rpmurl and argv doxygen groupings

16 years agorpmpgp doxygen tagging
Panu Matilainen [Fri, 30 Nov 2007 19:58:18 +0000 (21:58 +0200)]
rpmpgp doxygen tagging

16 years agorpmrpc doxygen groupings..
Panu Matilainen [Fri, 30 Nov 2007 19:47:27 +0000 (21:47 +0200)]
rpmrpc doxygen groupings..

16 years agoExport FTS_* options through rpmgi.h as RPMGI_*
Panu Matilainen [Thu, 29 Nov 2007 08:38:58 +0000 (10:38 +0200)]
Export FTS_* options through rpmgi.h as RPMGI_*
- permit full rpmgi use without exporting all of fts

16 years agoLose python fts
Panu Matilainen [Thu, 29 Nov 2007 08:26:53 +0000 (10:26 +0200)]
Lose python fts
- nothing uses it
- hardly "rpm" functionality

16 years agoAvoid building rpmdebug-py
Panu Matilainen [Thu, 29 Nov 2007 08:09:43 +0000 (10:09 +0200)]
Avoid building rpmdebug-py

16 years agoLose the useless rpmrc python stuff, group macro handling to rpmmacro-py
Panu Matilainen [Thu, 29 Nov 2007 08:06:57 +0000 (10:06 +0200)]
Lose the useless rpmrc python stuff, group macro handling to rpmmacro-py

16 years agoLose rpmgi_internal.h, no longer needed
Panu Matilainen [Wed, 28 Nov 2007 15:51:39 +0000 (17:51 +0200)]
Lose rpmgi_internal.h, no longer needed

16 years agoAdd rpmgiGetFlags() method to avoid rpmgi_internal.h in query
Panu Matilainen [Wed, 28 Nov 2007 15:47:58 +0000 (17:47 +0200)]
Add rpmgiGetFlags() method to avoid rpmgi_internal.h in query

16 years agoBunch of compiler warnings silenced
Panu Matilainen [Thu, 29 Nov 2007 07:42:56 +0000 (09:42 +0200)]
Bunch of compiler warnings silenced
- bunch of silly debug message casts to shut up whining
- cpuid() arg signedness

16 years agoRemove code duplication
Panu Matilainen [Wed, 28 Nov 2007 08:21:26 +0000 (10:21 +0200)]
Remove code duplication

16 years agoRevert the buggy dbiFindByLabel() epoch handling for now
Panu Matilainen [Tue, 27 Nov 2007 20:47:19 +0000 (22:47 +0200)]
Revert the buggy dbiFindByLabel() epoch handling for now
- ':' is a valid character in version (ick), need to account for that too

16 years agoBack out the epoch-in-queryformat changes, too much breaks
Panu Matilainen [Tue, 27 Nov 2007 20:44:54 +0000 (22:44 +0200)]
Back out the epoch-in-queryformat changes, too much breaks

16 years agoMake epoch present in generated filenames too
Panu Matilainen [Tue, 27 Nov 2007 11:38:18 +0000 (13:38 +0200)]
Make epoch present in generated filenames too

16 years agoComment out hRET_s and HE_s for now...
Panu Matilainen [Tue, 27 Nov 2007 11:27:15 +0000 (13:27 +0200)]
Comment out hRET_s and HE_s for now...

16 years agoMake default queryformat show epoch if present
Panu Matilainen [Tue, 27 Nov 2007 11:00:47 +0000 (13:00 +0200)]
Make default queryformat show epoch if present

16 years agoRemove unneeded includes
Panu Matilainen [Tue, 27 Nov 2007 10:42:12 +0000 (12:42 +0200)]
Remove unneeded includes

16 years agoOne missed legacy include
Panu Matilainen [Tue, 27 Nov 2007 09:58:17 +0000 (11:58 +0200)]
One missed legacy include

16 years agoDrop extra include paths from python too
Panu Matilainen [Tue, 27 Nov 2007 09:56:05 +0000 (11:56 +0200)]
Drop extra include paths from python too

16 years agoMove rpmfiBuildFNames() to rpmfi now that it's possible
Panu Matilainen [Tue, 27 Nov 2007 09:52:55 +0000 (11:52 +0200)]
Move rpmfiBuildFNames() to rpmfi now that it's possible

16 years agoMove legacy%#¤%#¤ to librpm now that it can move..
Panu Matilainen [Tue, 27 Nov 2007 09:34:23 +0000 (11:34 +0200)]
Move legacy%#¤%#¤ to librpm now that it can move..

16 years agoDrop support for old style file tags in rpmdb
Panu Matilainen [Tue, 27 Nov 2007 09:24:45 +0000 (11:24 +0200)]
Drop support for old style file tags in rpmdb

16 years agoRemove long since dead fields from python header objects
Panu Matilainen [Tue, 27 Nov 2007 08:13:16 +0000 (10:13 +0200)]
Remove long since dead fields from python header objects

16 years agoRemove debug junk
Panu Matilainen [Tue, 27 Nov 2007 07:55:40 +0000 (09:55 +0200)]
Remove debug junk

16 years agoTeach dbiFindByLabel() to grok epochs
Panu Matilainen [Tue, 27 Nov 2007 07:52:44 +0000 (09:52 +0200)]
Teach dbiFindByLabel() to grok epochs

16 years agoAdjust comment.
Ralf Corsépius [Mon, 26 Nov 2007 14:41:24 +0000 (15:41 +0100)]
Adjust comment.

16 years agos/build_os/host_os/
Ralf Corsépius [Mon, 26 Nov 2007 14:38:20 +0000 (15:38 +0100)]
s/build_os/host_os/

16 years agoRemove #include "lib/signature.h" (unused)
Ralf Corsépius [Mon, 26 Nov 2007 14:37:30 +0000 (15:37 +0100)]
Remove #include "lib/signature.h" (unused)

16 years agoRegenerate.
Ralf Corsépius [Mon, 26 Nov 2007 14:18:02 +0000 (15:18 +0100)]
Regenerate.

16 years agoFix quoting bug in preinstall.am generation.
Ralf Corsépius [Mon, 26 Nov 2007 14:17:52 +0000 (15:17 +0100)]
Fix quoting bug in preinstall.am generation.

16 years agoOne more pgpKeyID_t use
Panu Matilainen [Mon, 26 Nov 2007 12:48:29 +0000 (14:48 +0200)]
One more pgpKeyID_t use

16 years agoDefine and use pgpTime_t for pgp creation time(s)
Panu Matilainen [Mon, 26 Nov 2007 12:42:14 +0000 (14:42 +0200)]
Define and use pgpTime_t for pgp creation time(s)

16 years agoDefine and use pgpKeyID_t for pgp key id's
Panu Matilainen [Mon, 26 Nov 2007 12:19:38 +0000 (14:19 +0200)]
Define and use pgpKeyID_t for pgp key id's

16 years agoFix "byte" usage in test programs too
Panu Matilainen [Mon, 26 Nov 2007 11:51:44 +0000 (13:51 +0200)]
Fix "byte" usage in test programs too

16 years agoType pedantery.
Ralf Corsépius [Mon, 26 Nov 2007 09:53:47 +0000 (10:53 +0100)]
Type pedantery.

16 years agoEliminate type "byte"
Ralf Corsépius [Mon, 26 Nov 2007 09:42:39 +0000 (10:42 +0100)]
Eliminate type "byte"

16 years agoRemove unnecessary deps on NSS.
Ralf Corsépius [Sun, 25 Nov 2007 04:43:52 +0000 (05:43 +0100)]
Remove unnecessary deps on NSS.

16 years agoAdd a bunch of missing groupings to rpmlib.h items
Panu Matilainen [Fri, 23 Nov 2007 13:58:17 +0000 (15:58 +0200)]
Add a bunch of missing groupings to rpmlib.h items

16 years agoAdd a few missing rpmcli doxygen groupings
Panu Matilainen [Fri, 23 Nov 2007 13:57:51 +0000 (15:57 +0200)]
Add a few missing rpmcli doxygen groupings

16 years agoDoxygen cosmetics..
Panu Matilainen [Fri, 23 Nov 2007 13:47:34 +0000 (15:47 +0200)]
Doxygen cosmetics..

16 years agoAdd rpmtag + tag api doxygen group to librpm + hacking docs
Panu Matilainen [Fri, 23 Nov 2007 13:44:32 +0000 (15:44 +0200)]
Add rpmtag + tag api doxygen group to librpm + hacking docs

16 years agoRemove non-public stuff from librpm doxygen groups
Panu Matilainen [Fri, 23 Nov 2007 13:26:58 +0000 (15:26 +0200)]
Remove non-public stuff from librpm doxygen groups

16 years agoAdd doxygen group for rpmstring, include in librpm + hacking docs
Panu Matilainen [Fri, 23 Nov 2007 13:20:46 +0000 (15:20 +0200)]
Add doxygen group for rpmstring, include in librpm + hacking docs

16 years agoAdd doxygen group for rpmfileutil, include in librpm + hacking docs
Panu Matilainen [Fri, 23 Nov 2007 13:11:21 +0000 (15:11 +0200)]
Add doxygen group for rpmfileutil, include in librpm + hacking docs

16 years agoAdd doxygen group for rpmfc, include in librpm + hacking docs
Panu Matilainen [Fri, 23 Nov 2007 12:57:18 +0000 (14:57 +0200)]
Add doxygen group for rpmfc, include in librpm + hacking docs