Commit Graph

348 Commits

Author SHA1 Message Date
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
Panu Matilainen c0149602a6 Rename public fileAction* type to rpmFileAction for namespacing 2007-09-20 16:19:25 +03:00
Panu Matilainen 66dcee4a67 Hide db index handling and rpmdb details from the API to internal header 2007-09-17 13:17:07 +03:00
Ralf Corsépius ebef4f211c Remove splint tags. 2007-09-11 19:07:39 +02:00
Panu Matilainen 97cea31a8a Use direct selinux calls for context initialization and matching. 2007-09-03 14:42:42 +03:00
Panu Matilainen 7a50a54390 Sanitize SELinux file context initialization.
- do it in a single spot inside tsRun()
- automatically set RPMTRANS_FLAG_NOCONTEXTS if selinux is disabled
2007-09-03 12:23:42 +03:00
Panu Matilainen 0ad1873796 Move rollback IDTX out of cli-stuff, its needed by core ts handling too. 2007-08-30 15:49:31 +03:00
Panu Matilainen 8347d40b04 Don't check for termination signals in middle of transaction (!) 2007-08-27 10:19:43 +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 cf646d4802 getRepackageHeaderFromTE() expects const char * as 4th argument 2007-07-11 14:23:07 +03:00
Panu Matilainen f0a178f128 domd5() buffer signedness fixes. 2007-07-11 13:48:43 +03:00
Panu Matilainen 52f208dca3 Remove meaningles statement to avoid compiler warning. 2007-07-10 13:52:49 +03:00
Panu Matilainen 4a46e1fb4b Cast tid to time_t for ctime() to avoid compiler warning. 2007-07-10 13:32:45 +03:00
Panu Matilainen ccd3a804e3 Nuke ugly /var/log/lastlog kludgery. 2007-06-25 10:37:37 +03:00
Paul Nasrat 57f2cabf0f Initialise replaced 2007-06-21 12:28:13 +01:00
Paul Nasrat c44738eae8 Fix thinko 2007-06-21 08:09:24 +01:00
Panu Matilainen 4f5217f70a Fix variable double definition. 2007-06-19 14:29:10 +03:00
Panu Matilainen 30234b3737 Open non-temporary db's before chroot (rhbz#103952, 173285) 2007-06-19 13:33:50 +03:00
Paul Nasrat 0cfdc4fa03 Ensure the status of the file which be replaced by another rpm package is
updated
2007-06-18 14:31:13 +01:00
Panu Matilainen 485c8dac0d Do not run pre/posttrans scripts in test mode.
Patch from OpenSuSE.
2007-05-16 16:22:01 +03:00
Paul Nasrat 4da917bfef Enable configurable preferable elf colour policy (#235757)
Patch from: dwmw2 at redhat.com
2007-05-01 05:55:14 +01:00
Paul Nasrat 0e863398d4 When deleting files, drop any s-bit first, so that a malicious
user does not have access to old programs if he hard links them
to some other directory. [#50376] rh#125517
Patch from OpenSuSE
2007-04-16 13:26:12 +01:00
Paul Nasrat e315c18adc Fix netshared path comparison (rh#52725) fix by jbj. 2007-02-22 12:27:42 +00:00
jbj 441733afe1 Correct typo.
CVS patchset: 7863
CVS date: 2005/07/02 18:53:12
2005-07-02 18:53:12 +00: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 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 8ce559b875 Avoid unnecessary chroot("/") calls for certain Mac OSX kernels.
Strip URL clutter from --root paths in rpmtsRootDir(ts) and newRpmdb().

CVS patchset: 7574
CVS date: 2004/11/11 03:58:46
2004-11-11 03:58:46 +00:00
jbj 0a68012b6f Add options to populate transaction set while iterating.
Avoid mixed source/binary sanity check in rpmtsAddInstallElement.
Turn off query spewage if/when populating while iterating.
Display rpmtsCheck problems and suggestions after iterating.

CVS patchset: 7512
CVS date: 2004/10/25 18:10:48
2004-10-25 18:10:48 +00:00
jbj 8faa61c020 Doxygen fiddles.
CVS patchset: 7495
CVS date: 2004/10/20 10:19:34
2004-10-20 10:19:34 +00:00
jbj 24bb3c7ce2 Flush changes from rpm-4_3 branch.
CVS patchset: 7440
CVS date: 2004/10/09 19:40:09
2004-10-09 19:40:09 +00:00
jbj 07444608bc - bump rpm and popt versions to insure "newer".
- change default behavior to resolve file conflicts as LIFO.
- add --fileconflicts to recover rpm traditional behavior.
- prefer elf64 over elf32 files, everywhere and always (#126853).

CVS patchset: 7354
CVS date: 2004/07/05 15:24:17
2004-07-05 15:24:17 +00:00
joden ed47ca65b1 Minor tweaks to comments in autorollback code, made removal of re-packaged
package print to standard out in arb and rb code.
...james

CVS patchset: 7245
CVS date: 2004/05/03 17:29:16
2004-05-03 17:29:16 +00:00
jbj b687c65d77 splint fiddles.
CVS patchset: 7241
CVS date: 2004/04/19 12:06:30
2004-04-19 12:06:30 +00:00
jbj 12d5c367af - fix: no transaction lock if --test was specified (#119783).
CVS patchset: 7222
CVS date: 2004/04/07 23:50:35
2004-04-07 23:50:35 +00:00
jbj 60057a2de1 Splint fiddles.
CVS patchset: 7195
CVS date: 2004/03/26 17:27:57
2004-03-26 17:27:57 +00:00
niemeyer 73260d956c - Implemented support for internal Lua scripts.
- Implemented %pretrans and %posttrans script slots.
Changed files:
	Makefile.am configure.ac build/pack.c build/parseScript.c
	build/parseSpec.c build/rpmbuild.h build/rpmspec.h
	lib/Makefile.am lib/psm.c lib/rpmlib.h lib/rpmlibprov.c
	lib/rpmts.c lib/rpmts.h lib/transaction.c
Added files:
	lib/rpmlua.c lib/rpmlua.h lua/*

CVS patchset: 7175
CVS date: 2004/03/16 21:58:25
2004-03-16 21:58:25 +00:00
joden d7db215d7f initial autorollback feature.
CVS patchset: 7149
CVS date: 2004/03/05 18:22:25
2004-03-05 18:22:25 +00:00
jbj 99825287bd splint fiddles.
CVS patchset: 7134
CVS date: 2004/02/26 01:20:52
2004-02-26 01:20:52 +00:00
niemeyer 0f828b95fc Creating transaction locking scheme based on fcntl file locking
during writing operations. For now, this system will wait forever
for the lock to be released. This will ensure that current
applications will get the necessary protection without breaking
unexpectedly.
Modified Files:
	lib/Makefile.am lib/rpmts.c lib/transaction.c
Added Files:
	lib/rpmlock.c lib/rpmlock.h

CVS patchset: 7130
CVS date: 2004/02/25 19:54:58
2004-02-25 19:54:58 +00:00
jbj 32c0cfd728 - fix: escape '+' in regex patterns through RPMMIRE_DEFAULT (#103851).
- RPMMIRE_DEFAULT is overkill, use RPMMIRE_STRCMP instead (#103851).

CVS patchset: 7011
CVS date: 2003/12/26 16:34:52
2003-12-26 16:34:52 +00:00
jbj 3dcfeb3f9a Merge changes from rpm-4.2.1 development.
CVS patchset: 6959
CVS date: 2003/11/23 19:50:52
2003-11-23 19:50:52 +00:00
jbj 03d806feaa - resolve elf32/elf64 file conflicts to prefer elf64.
CVS patchset: 6931
CVS date: 2003/07/09 20:18:54
2003-07-09 20:18:54 +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