Panu Matilainen
bdfb54bd23
Remove cpio stuff from FD_t
...
- only the FSM cares about cpio position, move it there - there's only
ever one fd active inside FSM, no need to track it per-fd
2009-10-14 17:03:14 +03:00
Jindrich Novy
7acdfded4a
Add md5->filedigest aliases (rhbz#487597)
...
- add %verify(nofiledigest) as %verify(nomd5) file attribute alias
- reference digests as digests not checksums
- make old md5 related symbols obsolete and use newer reference
- update man page accordingly
2009-02-27 14:34:39 +01:00
Panu Matilainen
610347de6e
Pass rpmte to fsmSetup()
...
- fsm needs the transaction element for progress notification and
element type anyway
2008-11-27 09:25:12 +02:00
Panu Matilainen
54b683d2f3
Remove bogus consts from fsmSetup() args
...
- rpmfi is messed with (at least file actions)
- const on typedef'ed type doesn't mean a thing anyhow
2008-11-27 09:25:12 +02:00
Panu Matilainen
36d4908efe
Use matching type for fsm->digest to avoid unnecessary cast
2008-11-19 15:46:02 +02:00
Panu Matilainen
2d5b4e3bac
Lose useless fsm/rpmfi astriplen field
...
- only "used" for debugging output, duh...
2008-11-15 13:22:19 +02:00
Panu Matilainen
ed9836dfba
Remove unused fsm subbuf field
2008-11-12 21:58:56 +02:00
Panu Matilainen
fbc06059cb
Cpio flags are only relevant for fsm, get them out of rpmfi
2008-11-11 20:48:35 +02:00
Panu Matilainen
8e3b5bfc89
Push archivePos from rpmfi to fsm
...
- archive position is only meaningful in fsm context anyway
2008-11-11 18:16:22 +02:00
Panu Matilainen
97ab15cc9e
Add fsm and rpmfi machinery for file capabilities
...
- new rpmfiFCaps() API to retrieve the info from rpmfi set
- fsm internals quite similar to selinux handling
- plenty of #ifdef's, another possibility would be adding cap_foo dummies to
system.h like for selinux
2008-10-29 11:49:38 +02:00
Panu Matilainen
7681f80e25
Mark various fsm* bits internal
...
- build code uses fsmSetup() and fsmTearDown(), those need to remain
visible for now
2008-10-09 15:35:36 +03:00
Panu Matilainen
2093f7cceb
Plug leaks in selinux context handling in fsm
2008-07-03 17:14:45 +03:00
Panu Matilainen
161395648f
Use 64bit type internally for package archive size & offset
...
- cpio "new" ascii format limits individual files to UINT32_MAX, no such
limit on the entire archive though
- RPMSIGTAG_PAYLOADSIZE is 32bit type atm, assert that the archive size
fits to UINT32_MAX despite internal presentation being larger
- FD_t limits the real archive to rpm_off_t still
2008-06-09 12:29:07 +03:00
Panu Matilainen
09d8cbafff
Unexport file state machine internals
...
- fsmGetTs(), fsmGetFi(), fileStageString(), fileActionString(),
fsmMapPath(), fsmMapAttrs() and fsmStage() aren't needed outside fsm,
make 'em static to avoid leaking to symbol space
2008-06-03 14:26:34 +03:00
Panu Matilainen
ae5667cf06
Lose unused fdigests array from rpmfi struct
...
- only used in rpmfiNew() where it's converted to binary from the header
hex presentation and free'd immediately, a local variable will do just as
well
- some useless references in fsm and psm, kill'em too
2008-06-02 09:50:48 +03:00
Panu Matilainen
4aa7ab6422
Teach fsm internals to honor rpmfi digest type
2008-06-02 09:50:48 +03:00
Panu Matilainen
f771b641d3
Rename rpmfi and fsm checksum md5-sum fields to refer to digest
...
- no functional changes
- groundwork for supporting other than md5 checksums
2008-06-02 09:50:48 +03:00
Panu Matilainen
e886043a10
Add rpm_off_t type for file size types, use where spotted
...
- preliminaries for bumping up the max size, use rpm-specific type
as off_t size varies, header data needs fixed size
2008-02-04 11:27:00 +02:00
Panu Matilainen
8bdd462b50
Make fsm failedFile non-const like it really is
...
- callers need to free it so const is wrong
- cast away the hardlink-hackery in fsm instead
2007-12-18 10:10:03 +02:00
Panu Matilainen
6966c5d8ac
Stick cpioMapFlags to fsm.h, they're only used by fsm.c
...
- allows FSM* typedefs to move to where they belong
2007-12-17 13:39:14 +02:00
Panu Matilainen
8268570f48
Hide fsmIterator_s struct details, not needed outside fsm.c
2007-12-17 13:20:05 +02:00
Panu Matilainen
c3353c2af4
Stuff hardLink_s inside fsm.c, add pointer typedef to fsm.h
...
- nothing outside fsm.c needs except for the declaration in fsm_s
2007-12-17 13:15:53 +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
361a8e697b
Move file action enums to rpmfi where they logically belong
2007-12-02 22:50: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
c0149602a6
Rename public fileAction* type to rpmFileAction for namespacing
2007-09-20 16:19:25 +03:00
Ralf Corsépius
ebef4f211c
Remove splint tags.
2007-09-11 19:07:39 +02: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
jbj
210183cc69
Add lsetfilecon to install modes.
...
CVS patchset: 7006
CVS date: 2003/12/25 23:00:44
2003-12-25 23:00:44 +00:00
jbj
9c5529608e
- don't use error string after gzclose (Dmitry V. Levin).
...
Spliddles for rpmio, drill h_errno all the way through.
CVS patchset: 6826
CVS date: 2003/05/08 20:39:29
2003-05-08 20:39:29 +00:00
jbj
95f01d39a5
Splint clean.
...
CVS patchset: 6729
CVS date: 2003/04/02 21:16:26
2003-04-02 21:16:26 +00:00
jbj
97ec1053c9
- unify signal handling in librpmio, use condvar to deliver signal.
...
CVS patchset: 6707
CVS date: 2003/03/19 16:05:49
2003-03-19 16:05:49 +00:00
jbj
6cb657b9d2
Sanity.
...
CVS patchset: 6705
CVS date: 2003/03/19 03:00:02
2003-03-19 03:00:02 +00:00
jbj
7e716b70fb
splint fiddles.
...
CVS patchset: 6023
CVS date: 2003/01/23 20:23:24
2003-01-23 20:23:24 +00:00
jbj
ae8428475c
- add --with-efence to configure, check install/upgrade with efence.
...
- beecrypt: short hex string conversion overflows target buffer.
- mark "successors only" packages in transaction.
- reap scriptlets with SIGCHLD handler.
- rename PSM_t to rpmpsm, add methods and refcounts to manage.
- remove %%configure/%%makeinstall from arch-os/macros, default is OK.
- don't export MALLOC_CHECK_ to scriptlets.
- squeaky clean memory leak checking.
- always malloc rpmfi structure, refcounts are correct in rpmtsRun().
- skip redundant /sbin/ldconfig scripts on upgrade (if possible).
CVS patchset: 5645
CVS date: 2002/08/19 22:27:44
2002-08-19 22:27:44 +00:00
jbj
241fad1287
Propagate splint-3.0.1.7 close(2) internalState annotation throughout.
...
CVS patchset: 5542
CVS date: 2002/07/08 14:21:26
2002-07-08 14:21:26 +00:00
jbj
db4e72211e
Sanity.
...
CVS patchset: 5477
CVS date: 2002/06/09 22:15:16
2002-06-09 22:15:16 +00:00
jbj
2126e4ad09
- Grand Renaming of rpm data types.
...
CVS patchset: 5439
CVS date: 2002/05/19 18:42:25
2002-05-19 18:42:25 +00:00
jbj
b45c27e2ab
doxygen cleanup.
...
CVS patchset: 5379
CVS date: 2002/04/08 18:56:01
2002-04-08 18:56:01 +00:00
jbj
3e0d0877ff
- permit subset installs for %lang colored hardlink file sets.
...
CVS patchset: 5252
CVS date: 2002/01/11 23:03:22
2002-01-11 23:03:22 +00:00
jbj
a3b362c466
- solaris: translate i86pc to i386 ( #57182 ).
...
- fix: %GNUconfigure breaks with single quotes (#57264 ).
- fix: typo in find-requires.
- tru64 compiler message cleanup.
- add buildarch lines for hppa (#57728 ).
CVS patchset: 5228
CVS date: 2001/12/20 16:28:46
2001-12-20 16:28:46 +00:00
jbj
ceed8357c7
- convert file md5sum's to binary on the fly, reducing memory footprint.
...
CVS patchset: 5192
CVS date: 2001/11/18 17:49:21
2001-11-18 17:49:21 +00:00
jbj
966fabbc44
- memory indices for dependency check are typedef'd and abstract'd.
...
- no-brainer refcounts for fi object, debug the mess.
- dump the header early in transaction, recreate fi before installing.
CVS patchset: 5137
CVS date: 2001/10/28 22:17:47
2001-10-28 22:17:47 +00:00
jbj
c1d367a094
- transaction sets cerated in cli main.
...
- no-brainer refcounts for ts object.
CVS patchset: 5136
CVS date: 2001/10/27 22:31:10
2001-10-27 22:31:10 +00:00
jbj
d57a29baac
Converging on lclint-3.0.17 strict level.
...
CVS patchset: 5118
CVS date: 2001/10/17 16:43:36
2001-10-17 16:43:36 +00:00
jbj
72471f2e54
Explicit branchstate annotations.
...
CVS patchset: 5113
CVS date: 2001/10/15 17:53:34
2001-10-15 17:53:34 +00:00
jbj
d8dc44f363
lclint fiddles to annotate globals.
...
CVS patchset: 5106
CVS date: 2001/10/15 03:22:10
2001-10-15 03:22:10 +00:00
jbj
92556605af
- legacy: drop brokenMD5 support (rrpm-2.3.3 to rpm-2.3.8 on sparc).
...
- eliminate DYING code.
CVS patchset: 5082
CVS date: 2001/09/25 20:51:34
2001-09-25 20:51:34 +00:00
jbj
b533de2b27
Yet another patial harlink set fix.
...
CVS patchset: 4903
CVS date: 2001/06/25 20:01:42
2001-06-25 20:01:42 +00:00
jbj
4ae69250a2
- fix typos in linux.{req,prov}.
...
CVS patchset: 4834
CVS date: 2001/06/05 19:26:22
2001-06-05 19:26:22 +00:00