1008 Commits

Author SHA1 Message Date
Alexey Tourbin
af944d993e package.c (readPackageHeaders): factored do_readPackageHeaders 2009-05-10 23:32:43 +04:00
Alexey Tourbin
5bc035fdbd 4.0.4-alt77.M40.16
- rpmdb: Removed db1 support.
- db3.c (db3close): Backported fix for double close (RH#138589).
2009-04-23 17:18:49 +04:00
Alexey Tourbin
d141414717 db3.c (db3close): removed dobule close code (rpm5.org, RH#138589) 2009-04-23 16:48:19 +04:00
Alexey Tourbin
37bfe52994 rpmdb: include <db.h> and link with -ldb without configure check for now 2009-04-23 14:46:46 +04:00
Alexey Tourbin
2ec0a7bf9f rpmdb.c (rpmdbNextIterator): removed db1-related part 2009-04-23 13:57:36 +04:00
Alexey Tourbin
4657ef7c57 rpmdb.c (openDatabase): removed db1-related part 2009-04-23 13:57:15 +04:00
Alexey Tourbin
af4053bfa0 rpmdb: removed db1 support 2009-04-23 13:49:52 +04:00
3df8cccd04 Reduce macro abuse in %pre and %post scripts
(cherry picked from commit 0ecfddcdcd5782d9e5f16196664312ba81ef9051)
2009-04-23 13:39:13 +04:00
24b4ba2e3a 4.0.4-alt77.M40.15
- rpm.8: Fixed typo (closes: #19356).
- platform.in: Added macros: %_logrotatedir, %_runtimedir (closes: #13639).
2009-04-18 18:56:45 +00:00
b40f11aecb platform.in: Add %_runtimedir (ALT#13639) 2009-04-18 18:52:59 +00:00
8c7f046905 rpm.8: Fix typo (ALT#19356) 2009-04-16 22:38:54 +00:00
722d84d86e platform.in: Add %_logrotatedir 2009-04-16 22:19:13 +00:00
ba484a92a3 platform.in: Add %_initddir for FC compatibility 2009-04-16 22:12:47 +00:00
Alexey Tourbin
de9c375951 4.0.4-alt77.M40.14
- Improved fingerprint cache performance (credits: Florian Festi).
2009-03-26 11:21:54 +03:00
Alexey Tourbin
1ea6ca8d22 rpmhash.c (hashEqualityString): bare strcmp call 2009-03-26 11:20:50 +03:00
Alexey Tourbin
6652e778ca rpmhash.c (hashBucket_s): added const and unsigned 2009-03-26 11:20:41 +03:00
Alexey Tourbin
34d8d48726 rpmhash.c: renamed findEntry to findBucket and made it inline 2009-03-26 11:20:34 +03:00
Alexey Tourbin
c204d6ad7a rpmhash.c: allocate hash table and its buckets in single chunk 2009-03-26 11:20:23 +03:00
Alexey Tourbin
732a880e8c fprint.h (fprintCacheEntry_s): removed isFake (unused) 2009-03-26 11:20:17 +03:00
Alexey Tourbin
6a2cc38410 fprint.c: fpCacheFree returns NULL 2009-03-26 11:20:07 +03:00
Alexey Tourbin
dba96abac5 deal with fpCacheCreate() size parameter 2009-03-26 11:19:53 +03:00
Alexey Tourbin
02104ae61f Use only one, global fingerPrintCache to save a lot of stat calls
[Based on rpm.org af80c3de by Florian Festi.]
2009-03-26 11:19:43 +03:00
Alexey Tourbin
a443927f78 fprint.c (fpHashFunction): use Jenkins hash 2009-03-26 11:19:30 +03:00
Alexey Tourbin
6d4fea769d jhash.h, rpmhash.c: switch to Jenkins One-at-a-time hash 2009-03-26 11:19:01 +03:00
Alexey Tourbin
6a9eae99c7 fprint.c: removed fpLookupHeader(), unused 2009-03-26 11:18:11 +03:00
Alexey Tourbin
d1539cd25c fprint.c: clarify malloc confusion 2009-03-26 11:18:01 +03:00
Alexey Tourbin
c4170e6003 rpmhash.c: htFree() takes freeKey and freeData fns and returns NULL 2009-03-26 11:17:46 +03:00
Alexey Tourbin
97e48a2da9 rpmhash.c: Make the data array part of the hash bucket to save one pointer per bucket
[Based on rpm.org 0ba387b4 by Florian Festi.]
2009-03-26 11:17:33 +03:00
Alexey Tourbin
d4b7714b36 rpmhash.c: removed keySize arg from htCreate() 2009-03-26 11:17:14 +03:00
Alexey Tourbin
7d1eb44be2 4.0.4-alt77.M40.13
- Removed prehistoric multilib support.
2009-03-10 14:32:59 +03:00
Alexey Tourbin
aebc9a42dd removed prehistoric multilib support 2009-03-10 14:27:38 +03:00
Alexey Tourbin
b7041d73ef 4.0.4-alt77.M40.12
- Updated %config algorithm to avoid unnecessary *.rpmnew, *.rpmsave,
  and *.rpmorig files (credits: Panu Matilainen, Tomas Mraz).
  + If new package keeps the same config file, updating the file on disk
    is skipped (rhbz#194246).  This provides limited support for replacing
    config files with custom symbolic links.
  + If pre-existing file is the same as the one being installed for
    the first time, backup action is suppress (rhbz#128622).
  + Backup action is also disabled but for regular files and symlinks.
2009-03-09 20:55:33 +03:00
Alexey Tourbin
822062204d transaction.c: shorter local names in decideConfigFate 2009-03-09 20:13:10 +03:00
Alexey Tourbin
52e51f6ae6 Avoid unnecessary .rpmnew and .rpmsave files (rhbz#128622)
[Based on rpm.org ebfbc82b by Panu Matilainen.]

Don't create .rpmnew and .rpmsave files when file/symlink on disk differs
just by timestamp. Patch by Tomas Mraz.
2009-03-09 20:13:08 +03:00
Alexey Tourbin
329d84a5d8 transaction.c: simplified SAVE/ALTNAME/CREATE condition 2009-03-09 20:13:08 +03:00
Alexey Tourbin
7bb2ab740a transaction.c: use explicit conditions for newWhat 2009-03-09 20:13:07 +03:00
Alexey Tourbin
be808f57ca Avoid .rpmnew when the file hasn't changed in package (rhbz#194246)
[Based on rpm.org e64bf5b9 by Panu Matilainen.]

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.
2009-03-09 20:13:05 +03:00
Alexey Tourbin
ebf4093293 transaction.c: further decideConfigFate() tweaks 2009-03-09 20:13:02 +03:00
Alexey Tourbin
0ee67602ee transaction.c: revamped decideFileFate() akin to filecmp() 2009-03-09 20:11:22 +03:00
Alexey Tourbin
4a4f1c6522 4.0.4-alt77.M40.11
- Fixed /usr/lib/rpm/ ownership for new sisyphus_check.
2009-03-09 19:04:45 +03:00
Alexey Tourbin
c9a4295dbb fixed /usr/lib/rpm/ ownership for new sisyphus_check 2009-03-09 18:50:02 +03:00
Alexey Tourbin
267a7e8f33 4.0.4-alt77.M40.10
- Renamed rpm-python subpackage to python-module-rpm (ldv).
2009-03-09 18:42:00 +03:00
de7bee4901 Rename rpm-python subpackage to python-module-rpm
(cherry picked from commit 067f680afd18f464fad7be66ee05efb25be9d807)
2009-03-09 18:30:39 +03:00
Alexey Tourbin
4790122f71 4.0.4-alt77.M40.9
- backported changes from branch 4.1:
- psm.c: in syslog messages, discriminate between no epoch and zero epoch
- transaction.c: updated conflict algorithm for overlapping paths:
  exact st_mode and uid/gid match is required; md5 check is skipped
  for %ghost files
- psm.c: fixed chown attempts for src.rpm introduced [with previous change]
- rpmpopt (--changelog): remove extra newline after %{CHANGELOGNAME} (jbj)
2009-03-08 20:28:48 +03:00
Alexey Tourbin
71de4d65d8 rpmpopt.in: remove extra newline after %{CHANGELOGNAME} (jbj)
(cherry picked from commit 0b7a62724e581505b66fb485be34a5f83d6dd99d)
2009-03-08 20:16:43 +03:00
Alexey Tourbin
f9c067a1ad psm.[ch]: skip fuser and fgroup test/set for src.rpm
Previous change in loadFi() triggers the code which depends
on fi->fuser and fi->fgroup being NULL for source rpms.
Now I add explicit check for source rpms.

Update: also turn off suid/sgid bits for src.rpm.
(cherry picked from commit 070b65040eab0f221c5f79796358986e698cd2ef)
2009-03-08 20:12:41 +03:00
Alexey Tourbin
75978600ab s/relocateable/relocatable/ (jbj) 2009-03-08 20:12:18 +03:00
Alexey Tourbin
9d970cf8e2 lib/transaction.c (handleInstInstalledFiles): fixed RPMFILE_CONFIG bug
(cherry picked from commit c5e957a3b30abcdc368082be3a99e3f8c95a238f)
2009-03-08 20:07:14 +03:00
Alexey Tourbin
32c0658171 lib/transaction.c (filecmp): require st_mode and uid/gid match for overlapping files; do not require md5 match for %ghost files
(cherry picked from commit 1f439402e04acfea1bb3393b13771c6486601c91)
2009-03-08 20:06:45 +03:00
Alexey Tourbin
75e60a90bb lib/psm.c: in syslog messages, discriminate between no epoch and zero epoch
(cherry picked from commit e60ab8fa21243bd7741e198c9942924849e90d59)
2009-03-08 20:06:17 +03:00