Panu Matilainen
1e96ead466
Use rpm_tagtype_t everywhere for rpm (header) tagtype type
...
- typedef'ed as uint32_t, doesn't matter much but negative types dont exist
- easy to grep, easy to change...
- define RPM_FORCEFREE_TYPE instead of -1 "magic" for forcing
headerFreeData (ugh), easier to grep for and change than "-1"
2007-12-13 20:35:33 +02:00
Panu Matilainen
7e56c6355b
Use rpm_tag_t everywhere for rpm (header) tag type
...
- typedef'ed as int32_t for now, negative values used in some places for
error cases
- easy to grep, easy to change...
- add RPMTAG_NOT_FOUND define, used in place of -1 "magic",
2007-12-13 19:32:37 +02:00
Panu Matilainen
cbd7a684a4
Use rpm_count_t everywhere for header data count
...
- typedef'ed as uint32_t as that's the key size limit imposed by BDB,
relevant for RPM_BIN_TYPE
- easy to change to whatever later on as it's now consistent everywhere
- explicit casts where needed to avoid new warnings from signedness
2007-12-13 18:16:39 +02:00
Panu Matilainen
c8f2927227
Use rpm_count_t everywhere for header data count
...
- typedef'ed as uint32_t as that's the key size limit imposed by BDB,
relevant for RPM_BIN_TYPE
- easy to change to whatever later on as it's now consistent everywhere
2007-12-13 09:25:10 +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
5219448fa1
Use headerIsSource() everywhere for determining package type
2007-12-01 19:29:57 +02:00
Panu Matilainen
89527785bb
Move logging related macros rpmlog, adjust includes
2007-11-30 23:08:38 +02:00
Panu Matilainen
5fa08529cb
Move rpmfiBuildFNames() to rpmfi now that it's possible
2007-11-27 11:52:55 +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
02fb3b030d
Remove two unnecessary legacy.h includes
2007-11-01 12:25:41 +02:00
Ralf Corsépius
f25c04c1e4
Include "rpmlib.h" instead of <rpmlib.h>.
2007-10-28 06:47:31 +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
3b7a6a5a95
Remove bunch of unnecessary rpmio_internal includes
2007-10-22 16:51:41 +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
Panu Matilainen
610306fb52
Rename whatis() to rpmfiWhatis() for namespacing
2007-09-26 09:57:26 +03:00
Panu Matilainen
c0149602a6
Rename public fileAction* type to rpmFileAction for namespacing
2007-09-20 16:19:25 +03:00
Panu Matilainen
e53ceb6706
Rename fileTypes(_e) to rpmFileTypes for namespacing
2007-09-20 15:27:07 +03:00
Ralf Corsépius
ebef4f211c
Remove splint tags.
2007-09-11 19:07:39 +02:00
Panu Matilainen
0df97d170a
RIP rpmsx and all its uses
2007-09-03 15:20:31 +03:00
Panu Matilainen
c0bd72b026
Rip out unnecessary selinux babbage.
...
- rpm doesn't manage selinux contexts so it doesn't need to know about them
other than when creating files
- implement --fscontext as popt alias since it's easy to do so...
2007-09-03 15:15:50 +03:00
Panu Matilainen
90ad59fb99
Kill remaining uses of selinux filecontexts in headers..
2007-09-03 13:28:20 +03:00
Panu Matilainen
e64bf5b93a
Avoid .rpmnew when the file hasn't changed in package (rhbz#194246)
...
The current behavior of %config(noreplace) creates a .rpmnewfile iff the type
of the current file has been changed wrto what was originally installed.
The patch changes this behavior so when old and new (in db and in package) is
identical -> not changed, the function returns FA_SKIP -> it won't clobber
anything, it simply skips installation of the file from the package.
This patch handles also the opposite case when old and new packages contain
%config symlink and we have regular file on disk.
Patch from Tomas Mraz.
2007-08-28 09:04:09 +03:00
Panu Matilainen
ebfbc82bb1
Avoid unnecessary .rpmnew and .rpmsave files (rhbz#128622)
...
Don't create .rpmnew and .rpmsave files when file/symlink on disk differs
just by timestamp. Patch by Tomas Mraz.
2007-08-09 15:15:24 +03:00
Panu Matilainen
6f993fee65
Pull in rpmfi int_32 -> uint_32 changes from rpm5.org.
...
TODO reminder to audit all uses of those, plenty of places where signed
doesn't make much sense, inconsistent use etc.
2007-07-12 13:03:19 +03:00
Panu Matilainen
e12cf3d1cc
Use uint_32 for dirindexes everywhere
2007-07-12 12:30:26 +03:00
Panu Matilainen
6a51e2f49f
One more domd5() buffer signedness fix.
2007-07-11 13:52:22 +03:00
Panu Matilainen
b8da45aba1
Missing include for domd5
2007-07-11 13:50:54 +03:00
Panu Matilainen
049674696d
Remove const type-qualifiers from function return types everywhere.
...
They're meaningless in C and cause tonne of build warnings.
2007-07-10 12:15:43 +03:00
Panu Matilainen
ccd3a804e3
Nuke ugly /var/log/lastlog kludgery.
2007-06-25 10:37:37 +03:00
Paul Nasrat
746d798d5d
Backed out changeset 99c5bd19ffc4bfbfa5601767cbc1338b5fa570e9
2007-06-21 09:57:19 +01:00
Paul Nasrat
b363333f5d
Initialise replaced on rpmfiNew
2007-06-21 08:57:01 +01:00
jbj
704d36f484
- perform callbacks as always ( #147537 ).
...
CVS patchset: 7757
CVS date: 2005/02/10 09:04:05
2005-02-10 09:04:05 +00:00
jbj
228d0e350a
Splint fiddles.
...
CVS patchset: 7669
CVS date: 2005/01/04 17:11:00
2005-01-04 17:11:00 +00:00
jbj
eb9c78fb09
avoid md5 on sparse /var/log/lastlog file
...
CVS patchset: 7633
CVS date: 2004/12/07 00:06:36
2004-12-07 00:06:36 +00:00
jbj
f4545b773c
Splint fiddles.
...
CVS patchset: 7437
CVS date: 2004/10/09 18:07:24
2004-10-09 18:07:24 +00:00
jbj
a63e1592af
- ia64: auto-relocate entire, not partial, directory contents ( #126905 ).
...
CVS patchset: 7357
CVS date: 2004/07/05 19:21:18
2004-07-05 19:21:18 +00:00
jbj
dc885367f5
- fix: segfault on --recontext if file_contexts unreadable ( #117374 ).
...
- fix: /etc/security/selinux/file_contexts is default path.
CVS patchset: 7220
CVS date: 2004/04/07 23:26:00
2004-04-07 23:26:00 +00:00
jbj
68325b9175
- scareMem = 0 everywhere, document deprecation phase out.
...
CVS patchset: 7203
CVS date: 2004/03/28 16:07:26
2004-03-28 16:07:26 +00:00
jbj
5c261bacdc
Map "<<none>>" expressions to "".
...
CVS patchset: 7071
CVS date: 2004/01/09 23:17:33
2004-01-09 23:17:33 +00:00
jbj
ec590d0d69
Use "", not NULL, for missing file contexts.
...
CVS patchset: 7070
CVS date: 2004/01/09 23:14:00
2004-01-09 23:14:00 +00:00
jbj
cf60d72565
add --with-selinux, move selinux stubs to system.h.
...
CVS patchset: 7063
CVS date: 2004/01/05 14:09:47
2004-01-05 14:09:47 +00:00
jbj
59f6e1d78f
- fix: wrong package count for trigger scriptlet 1st arg ( #100509 ).
...
- fix: don't break header SHA1 if non-existent user/group (#97727 ).
- remove fuids/fgids from rpmfi, easier to lookup fuser/fgroup instead.
- merge sensible parts of openpkg rpm.patch.bugfix (#104780 ).
CVS patchset: 7024
CVS date: 2003/12/27 01:37:56
2003-12-27 01:37:56 +00:00