Commit Graph

202 Commits

Author SHA1 Message Date
Panu Matilainen b91128a0b8 Remove hardcoded libtermcap vs bash kludge. 2007-06-26 20:46:51 +03:00
Panu Matilainen 07b45099bb Treat null epoch equal to zero epoch in freshen (rhbz#143301). Patch from JBJ. 2007-06-11 10:30:29 +03:00
Panu Matilainen c3ce7e90a5 Check for supported payload format on package install. (rhbz#140052)
Add a new API function to check for supported payload format from header, have
rpmtsAddInstallElement() check and fail if not. Check for tsadd failure
on src.rpm install as well.
2007-05-24 10:56:53 +03:00
Panu Matilainen 7e796f6f52 Fix building without Lua support.
Patch from OpenSuSE.
2007-05-16 16:16:45 +03: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 5521d15370 Fork failure patch from OpenSuSE 2007-04-16 12:49:38 +01:00
jbj 2a16343146 - fix: initialize variables used in debug msg (#160458).
CVS patchset: 7881
CVS date: 2005/07/13 11:15:16
2005-07-13 11:15:16 +00:00
pauln d3afe2c94c scriptlet signal failure message
CVS patchset: 7851
CVS date: 2005/05/11 16:11:27
2005-05-11 16:11:27 +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 f5203aea8b - add support for automagic pubkey retrieval using HKP.
CVS patchset: 7617
CVS date: 2004/11/28 21:14:41
2004-11-28 21:14:41 +00:00
jbj f9473219d5 - selinux: use rpm_execcon, not execv, to run scriptlets (#136848).
- fix: segfault on --verifydb (#138589).

CVS patchset: 7577
CVS date: 2004/11/11 06:11:37
2004-11-11 06:11:37 +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 afeddbf68d Stub in URL_IS_HTTPS everywhere.
CVS patchset: 7536
CVS date: 2004/11/04 13:29:11
2004-11-04 13:29:11 +00:00
jbj d1a74696d6 Doxygen and cpp nit picks.
CVS patchset: 7443
CVS date: 2004/10/09 21:58:33
2004-10-09 21:58:33 +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 f4545b773c Splint fiddles.
CVS patchset: 7437
CVS date: 2004/10/09 18:07:24
2004-10-09 18:07:24 +00:00
jbj dd17e87985 - ia64: auto-relocate entire, not partial, directory contents (#126905).
- ia64: auto-relocate glibc.ix86 interpreter path (#100563).
- shared libraries in separate rpm-libs package.
- fix: defattr for rpm-libs (#130461).
- fix: static glibc/libgcc helpers always installed (#127522).
- ia64: make sure that autorelocated file dependencies are satisfied.
- ia64: relocate all scriptlet interpreters.
- ia64: don't bother trying to preload autorelocated modules.
- fix: filesystem package needs mail/lock w/o getgrnam.
- fix: do getpwnam/getgrnam to load correct modules before chroot.

CVS patchset: 7415
CVS date: 2004/08/31 15:39:37
2004-08-31 15:39:37 +00:00
jbj 316c323e09 - ia64: auto-relocate glibc.ix86 interpreter path (#100563).
CVS patchset: 7360
CVS date: 2004/07/05 20:14:28
2004-07-05 20:14:28 +00:00
joden bd7c49f4e0 %postun failures are now propagated back to transaction state machine.
...james

CVS patchset: 7246
CVS date: 2004/05/04 06:04:23
2004-05-04 06:04:23 +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 0d73d4699b revert buildtime tie breaking, not the right thing to do.
splint fiddles.

CVS patchset: 7216
CVS date: 2004/04/01 12:56:54
2004-04-01 12:56:54 +00:00
jbj dff80a94cc - use package build time as EVR comparison tie breaker.
CVS patchset: 7201
CVS date: 2004/03/28 14:57:53
2004-03-28 14:57:53 +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 c096a690b8 - Now Lua interface is using a global state.
- /usr/lib/rpm/init.lua is called during intialization.

CVS patchset: 7188
CVS date: 2004/03/24 19:47:11
2004-03-24 19:47:11 +00:00
niemeyer 635edd9523 - New internal Lua support scheme, laying under rpmio.
- New API abstracting access to Lua state (rpmlua is
  abstract to everyone but rpmlua.c).
- New %{lua: ... } macro.
Modified Files:
	lib/Makefile.am lib/psm.c lib/rpmts.c lua/local/linit.lch
	lua/local/linit.lua rpmio/Makefile.am rpmio/macro.c
Added Files:
	rpmio/rpmlua.c rpmio/rpmlua.h
Removed Files:
	lib/rpmlua.c lib/rpmlua.h

CVS patchset: 7178
CVS date: 2004/03/19 20:08:20
2004-03-19 20:08:20 +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 c5406814b8 - force FD_CLOEXEC on 1st 100 inherited fdno's.
CVS patchset: 7125
CVS date: 2004/02/23 00:43:45
2004-02-23 00:43:45 +00:00
jbj 6e15023bd1 - set "rpm_script_t" exec type for scriptlets iff /bin/sh, else default.
CVS patchset: 7123
CVS date: 2004/02/23 00:03:14
2004-02-23 00:03:14 +00:00
jbj e0dc1382c6 - establish rpm_script_t before scriptlet exec.
CVS patchset: 7098
CVS date: 2004/02/16 04:57:25
2004-02-16 04:57:25 +00:00
jbj 78a861c1ea - establish rpm_script_t before scriptlet exec, ignore errors for now.
CVS patchset: 7095
CVS date: 2004/02/16 03:07:48
2004-02-16 03:07:48 +00:00
jbj b106986999 - spelling corrections (#112728).
CVS patchset: 7047
CVS date: 2003/12/30 13:14:49
2003-12-30 13:14:49 +00:00
jbj 51ae7c0fb0 splint fiddles.
CVS patchset: 7030
CVS date: 2003/12/27 02:40:25
2003-12-27 02:40:25 +00:00
jbj 1aefecc638 Move #include "ugid.h" to fsm.c, nuke unused variable in psm.c.
CVS patchset: 7028
CVS date: 2003/12/27 01:54:01
2003-12-27 01:54:01 +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
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 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 c243ab099b - resurrect manifests, RPMRC_NOTFOUND returned by readLead().
CVS patchset: 6752
CVS date: 2003/04/16 17:48:04
2003-04-16 17:48:04 +00:00
jbj 783219a832 fix: prevent segfault if malicious server sends 1 GB of data through ftpNLST.
fix: rpmal could segfault under obscure conditions.
Use array, not individual structures, for rpmsw{Enter,Exit} timestamps.

CVS patchset: 6735
CVS date: 2003/04/08 21:42:55
2003-04-08 21:42:55 +00:00
jbj f60ec855de Calibrated stopwatch using rdtsc.
Probes for digest/signature and rpmdb.

CVS patchset: 6734
CVS date: 2003/04/07 12:05:35
2003-04-07 12:05:35 +00:00
jbj 0bb715a528 Accumulate compress/uncompress times.
CVS patchset: 6733
CVS date: 2003/04/04 22:15:58
2003-04-04 22:15:58 +00:00
jbj 5984579078 Use rpmswEnter/rpmswExit throughout.
CVS patchset: 6730
CVS date: 2003/04/02 23:26:06
2003-04-02 23:26:06 +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 d79b053df3 Repair rdtsc stopwatch, use gettimeofday(3) for now.
CVS patchset: 6716
CVS date: 2003/03/25 00:22:23
2003-03-25 00:22:23 +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 5fe1914a15 Proof of concept scriptlet queue, single or multi threaded.
CVS patchset: 6699
CVS date: 2003/03/18 02:41:33
2003-03-18 02:41:33 +00:00
jbj 77b724ec99 Create rpmsq, combining rpmdb/psm signal handlers.
CVS patchset: 6694
CVS date: 2003/03/16 22:36:52
2003-03-16 22:36:52 +00:00
jbj 0feab83bbe Sanity.
CVS patchset: 6692
CVS date: 2003/03/15 21:51:11
2003-03-15 21:51:11 +00:00
jbj d5be314063 Sanity.
CVS patchset: 6689
CVS date: 2003/03/14 23:37:25
2003-03-14 23:37:25 +00:00