Panu Matilainen
5cde7cac96
Refactor running of pre/post scriptlets out of rpmtsRun()
2008-03-17 16:03:51 +02:00
Panu Matilainen
d89482a7c7
Remove repackage support to finish off with rollback
...
The two main classes of rollback/repackage need are
1) Gimme back the previous version, this broke XYZ on my system.
This is better handled by downgrading to the previous version of original
package instead of repackaged garbage. We should maintain real package
(version) history somewhere.
2) Upgrade messed up my configuration.
Instead of repackaging everything we could be far more intelligent
wrt config files, stick them into real version control or at least have
hooks to do so.
RPMCALLBACK_REPACKAGE_* and RPMTRANS_FLAG_REPACKAGE definitions left around
to avoid needlessly breaking everybodys callbacks (for now)
2008-03-17 14:10:11 +02:00
Panu Matilainen
37543ee040
Remove rollback support
...
- not possible to do reliably within rpm
- effort is better wasted on investigating fs-level snapshots, which
is way beyond rpm scope except for hooks to interact with the snapshot
mechanism to communicate beginning/end of transaction and such
2008-03-17 11:53:27 +02:00
Panu Matilainen
ed78cef2c3
Remove support for automatic rollback on failure
...
- doing this reliably from rpm is simply not possible as there's no way
to undo script actions, might as well not pretend we can
- for a feature that's not generally usable it complicates mainline code
way too much
2008-03-17 12:04:39 +02:00
Panu Matilainen
a08ececd83
Log message adjustments
...
- dont waste translator time by having them translate obscure debug messages
- adjust some suspect looking logging levels
- mark some non-debug messages for translation where missing..
2008-03-07 09:47:51 +02:00
Panu Matilainen
9f8aa63490
Fix a bunch of string format mismatches found by gcc's variadic checks
...
Patch from Michal Marek
2008-02-14 13:10:51 +02:00
Panu Matilainen
36e9f885e1
Yet another typedef for transaction ID, use where spotted
...
- most remaining [u]int16|32 uses are indexes and such, ie actual numbers
2008-02-05 15:29:37 +02:00
Panu Matilainen
ceb96638f6
Use rpm_flag_t for header generic bitfields (file flags etc)
...
- additionally use rpmfileAtts / rpmVerifyFlags consistently where
appropriate
2008-02-05 15:15:41 +02:00
Panu Matilainen
e7ac5fb183
Add rpm_mode_t type, use where spotted
...
- bring the types under some sort of control, previously mixture of
int16_t, uint16_t and unsigned short was used..
2008-02-05 12:31:32 +02:00
Panu Matilainen
630a5a4c1a
Add rpm_color_t type for rpm color bits, use where spotted
2008-02-05 12:12:31 +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
d2efb5d77c
Use rpmsenseFlags type for dependency flags everywhere (hopefully)
2008-01-30 16:04:40 +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
519eaaf236
Assorted int -> size_t corrections for string lengths
2008-01-02 13:55:16 +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
44c90ce3f0
Const-pedantry here and there...
2007-12-19 14:13:34 +02:00
Panu Matilainen
f1df7a59b8
Make psm opaque, add minimal methods to cover internal needs
2007-12-17 14:58:02 +02:00
Panu Matilainen
898d2cc867
transaction.c doesn't need fsm.h, rpmfi_internal does
2007-12-17 13:50:11 +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
8946859700
More size_t type pedantry
2007-12-14 11:38: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
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
6bdbbefbec
Split rpmte internals to separate header
...
- avoid unnecessary include-order issues
- stop define-games for internals access
2007-12-03 10:15:46 +02:00
Panu Matilainen
2c3ce0c8b0
Split rpmfi internals to separate header
2007-12-03 09:46:51 +02:00
Panu Matilainen
82a9632d4f
Move hGet*() funcs from rpmts, rename to headerGet*()
2007-12-01 10:29:44 +02:00
Panu Matilainen
89527785bb
Move logging related macros rpmlog, adjust includes
2007-11-30 23:08:38 +02:00
Ralf Corsépius
60939d6985
Expand private include file names to be relative to $(top_srcdir)
2007-11-23 11:39:29 +01:00
Panu Matilainen
e063854e11
Calculating file checksums aint legacy activity
...
- move the checksumming into librpmio
- rename domd5() to rpmDoDigest() with future expansion for specifying
digest algorithm type (ignored for now)
- rearrange parameters to leave return types last
- one less rpmio_internal outside rpmio/, whee...
- used all over the rpm tree, and it knows about handling prelinked files
so potentially useful for outside users, might as well export it
- new public header rpmfilutil.h for collecting this sort of stuff
2007-11-22 16:06:11 +02:00
Panu Matilainen
115d698252
Move string helpers from lib/misc.h to rpmio/rpmstring.h
...
- splitString, freeSplitString, stripTrailingChar
2007-11-23 08:21:23 +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
8239d0b74b
Remove bunch of unnecessary misc.h includes, document others
2007-11-07 10:17:10 +02:00
Panu Matilainen
e1cc5871a0
Document RPMFI_INTERNAL uses
2007-10-31 12:48:43 +02:00
Panu Matilainen
bb976c2f57
Document _RPMTE_INTERNAL needs
2007-10-31 12:39:23 +02:00
Panu Matilainen
05fcdb49f1
Split out rpmts_internal.h from rpmts.h
2007-10-31 12:08:01 +02:00
Panu Matilainen
9482ab2141
Use rpmteKey() instead of te internals
2007-10-30 12:12:54 +02:00
Panu Matilainen
be83036b2a
Remove unnecessary rpmShowProgress duplicate prototype
2007-10-30 11:54:22 +02:00
Ralf Corsépius
f25c04c1e4
Include "rpmlib.h" instead of <rpmlib.h>.
2007-10-28 06:47:31 +01:00
Ralf Corsépius
e36a2ac8da
Include "rpmmacro.h" instead of <rpmmacro.h>.
2007-10-28 06:32:05 +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
b2e90be346
Use NEVRA, not NEVR everywhere for rpmProblems
2007-10-24 10:31:42 +03:00
Panu Matilainen
b21bf6018e
Replace all uses of RPMMESS_FATALERROR with RPMLOG_CRIT
2007-10-09 14:54:28 +03:00
Panu Matilainen
56366e3890
Replace all uses of RPMMESS_NORMAL with RPMLOG_NOTICE
2007-10-09 14:50:42 +03:00
Panu Matilainen
c52905d334
Replace all uses of RPMMESS_ERROR with RPMLOG_ERR
2007-10-09 14:49:02 +03:00
Panu Matilainen
9d9aa852ca
Replace all uses of RPMMESS_DEBUG with RPMLOG_DEBUG
2007-10-09 14:48:04 +03:00
Panu Matilainen
4ce9fc1a17
Replace all rpmMessage() uses with rpmlog()
2007-10-09 14:14:30 +03:00
Ralf Corsépius
0d595e407a
Add description-stubs to doxygen blocks to silence doxygen warnings.
2007-10-06 04:41:49 +02:00
Panu Matilainen
39072f5ee4
Avoid unnecessary rpmps internals access
2007-09-26 10:40:02 +03:00
Panu Matilainen
610306fb52
Rename whatis() to rpmfiWhatis() for namespacing
2007-09-26 09:57:26 +03:00
Panu Matilainen
7e5099e52f
Rename alKey & alNum to rpmal* for namespacing
...
Also move it out of rpmlib.h, nothing needs it there...
2007-09-21 15:17:08 +03:00