platform/upstream/rpm.git
15 years agoPreparing for rpm-4.7.0 final rpm-4.7.0
Panu Matilainen [Thu, 16 Apr 2009 08:16:58 +0000 (11:16 +0300)]
Preparing for rpm-4.7.0 final

15 years agoPad RSA signatures up to modulus size if necessary (rhbz#494049)
Panu Matilainen [Thu, 16 Apr 2009 08:08:25 +0000 (11:08 +0300)]
Pad RSA signatures up to modulus size if necessary (rhbz#494049)
- unfortunately can't be detected at initial allocation so extra
  copy is needed at verification time
- this is commit 4c39a9df93c962c69e23ff48789cb950a105a44b backported

15 years agoCheck for termination signals during signing / signature checking loop
Panu Matilainen [Tue, 14 Apr 2009 07:42:20 +0000 (10:42 +0300)]
Check for termination signals during signing / signature checking loop
(cherry picked from commit fb19a98fa0ca1c152e1bd22322f5fd1350a48eb6)

15 years agoError out at build on unsupported payload compressors (rhbz#495429)
Panu Matilainen [Mon, 13 Apr 2009 10:58:39 +0000 (13:58 +0300)]
Error out at build on unsupported payload compressors (rhbz#495429)
- only permit bzip2/lzma/xz payload compression if rpm built with the
  necessary libraries
(cherry picked from commit 0f967d157d3a02696898f848f4cd584e646b264f)

15 years agoUpdated Polish translation (Piotr Drąg)
Panu Matilainen [Thu, 9 Apr 2009 13:15:59 +0000 (16:15 +0300)]
Updated Polish translation (Piotr Drąg)

15 years agoPreparing for rpm-4.7.0-rc1 rpm-4.7.0-rc1
Panu Matilainen [Thu, 9 Apr 2009 11:28:32 +0000 (14:28 +0300)]
Preparing for rpm-4.7.0-rc1

15 years agoUpdated Spanish translation (Oscar Bacho)
Panu Matilainen [Thu, 9 Apr 2009 11:25:35 +0000 (14:25 +0300)]
Updated Spanish translation (Oscar Bacho)

15 years agoUpdated Serbian translations (Milos Komarcevic)
Panu Matilainen [Thu, 9 Apr 2009 11:24:51 +0000 (14:24 +0300)]
Updated Serbian translations (Milos Komarcevic)

15 years agoUpdated Catalan translation (Xavier Conde)
Panu Matilainen [Thu, 9 Apr 2009 11:22:05 +0000 (14:22 +0300)]
Updated Catalan translation (Xavier Conde)

15 years agoMake it clearer that PACKAGE_FILE logic applies to all -F, -U, and -i.
Ville Skyttä [Mon, 6 Apr 2009 20:08:15 +0000 (23:08 +0300)]
Make it clearer that PACKAGE_FILE logic applies to all -F, -U, and -i.
(cherry picked from commit 0f29cc7f2781cdcedab9c8a03786d45f14fc316b)

15 years agoRemove obsolete info about --buildarch and --buildos.
Ville Skyttä [Mon, 6 Apr 2009 20:00:56 +0000 (23:00 +0300)]
Remove obsolete info about --buildarch and --buildos.
(cherry picked from commit 48580a70bc7372d1227f07f3377f9c253e492385)

15 years agoFix PGP v4 fingerprint calculation (rhbz#493777)
Panu Matilainen [Thu, 9 Apr 2009 10:05:00 +0000 (13:05 +0300)]
Fix PGP v4 fingerprint calculation (rhbz#493777)
- patch from openSUSE / Michael Schroeder
(cherry picked from commit 7a8aecbc8651cab2bd945db8ffd749f9a165bdf1)

15 years agoDon't allow '~', '/' characters and ".." sequence in NVR (rhbz#493157)
Jindrich Novy [Mon, 6 Apr 2009 08:20:47 +0000 (10:20 +0200)]
Don't allow '~',  '/' characters and ".." sequence in NVR (rhbz#493157)
(cherry picked from commit 37a35d07211b612429fef6614888f5fa099dd27b)

15 years agoFixup Polish translation HEAD vs 4.7.x difference
Panu Matilainen [Fri, 3 Apr 2009 11:41:50 +0000 (14:41 +0300)]
Fixup Polish translation HEAD vs 4.7.x difference

15 years agoMake sure installed files have state (rhbz#492947)
Panu Matilainen [Fri, 3 Apr 2009 07:28:59 +0000 (10:28 +0300)]
Make sure installed files have state (rhbz#492947)
- rpmfsSetState() doesn't get called for skipped files like %ghost and
  %config(noreplace), causing incorrect file state ("no state") getting
  recorded in rpmdb, leading to inapproriate removal/rename on erase, ick
- For TR_ADDED, always default file states to RPMFILE_STATE_NORMAL, fsm
  changes it as necessary for skipped colors and such. Lazy alloc on
  rpmfsSetState() is not correct as rpmfsSetState() might not get called
  at all.
- originally broken by commit 8d6c4b8c95b59f5a71d90c582c2e98f5c7ed7b9d
(cherry picked from commit c40f6d5dcabfe0b68b830d96b01eaedac0b2d18d)

15 years agoUse -mtune instead of -mcpu (rhbz#493696)
Jindrich Novy [Thu, 2 Apr 2009 18:49:48 +0000 (20:49 +0200)]
Use -mtune instead of -mcpu (rhbz#493696)
(cherry picked from commit 4c23ebdb81d8e8a00ccf7e92d7e3788081b2f57d)

15 years agoPrefer more specific types over generic "text" in classification (rhbz#491349)
Panu Matilainen [Tue, 31 Mar 2009 10:14:08 +0000 (13:14 +0300)]
Prefer more specific types over generic "text" in classification (rhbz#491349)
(cherry picked from commit e38cbe5b4e7bfa9c7b10e3926093b6887d97d6a1)

15 years agoHandle XZ in %uncompress macro
Panu Matilainen [Fri, 27 Mar 2009 12:11:43 +0000 (14:11 +0200)]
Handle XZ in %uncompress macro
- should've been in commit 8078d0ba24662308b10d9eb0f0da978584b7e757
(cherry picked from commit 3d63df622037796279514a4da3ddc6807a102c1d)

15 years agoRip the macro default settings in rpmrc setDefaults()
Panu Matilainen [Fri, 27 Mar 2009 12:08:56 +0000 (14:08 +0200)]
Rip the macro default settings in rpmrc setDefaults()
- these get nuked and not reloaded on package builds
- rpm(build) needs a properly set up macros file in any case
(cherry picked from commit a3922760832ec4329f1426a54012b28cf387b5f5)

15 years agoAdd built-in %getconfdir macro for getting rpmConfigDir() value
Panu Matilainen [Fri, 27 Mar 2009 12:01:47 +0000 (14:01 +0200)]
Add built-in %getconfdir macro for getting rpmConfigDir() value
- define %_rpmconfigdir via %getconfdir in the main macro config, this
  avoids it getting lost on macro reloads as happens when building
  several packages at once
(cherry picked from commit 2d2bda29c159f16689c05fd4dda20a3f70597e1d)

15 years agoPlug minor memleak from default rc and macro file paths
Panu Matilainen [Fri, 27 Mar 2009 11:45:08 +0000 (13:45 +0200)]
Plug minor memleak from default rc and macro file paths
- build code can call these several times, only init once
(cherry picked from commit a5eeff6d42d6452a85942f89a6b3a1196ccc47bc)

15 years agoPlug minor memleak from rpmGetCwd() on build
Panu Matilainen [Fri, 27 Mar 2009 11:44:46 +0000 (13:44 +0200)]
Plug minor memleak from rpmGetCwd() on build
(cherry picked from commit b2e85dae836e9695e4ef3e83c819b3523ae81634)

15 years agoEliminate pointless xstrdup()'s, the strings are never modified
Panu Matilainen [Thu, 26 Mar 2009 13:31:10 +0000 (15:31 +0200)]
Eliminate pointless xstrdup()'s, the strings are never modified
(cherry picked from commit a17b3b68f2c2320cd81e285e02c05ab881ad07fd)

15 years agoprocess the "./" in file paths correctly (rhbz#491388)
Jindrich Novy [Wed, 25 Mar 2009 16:28:24 +0000 (17:28 +0100)]
process the "./" in file paths correctly (rhbz#491388)
(cherry picked from commit 4d31b0433f3f804f81955c32e63c93f31506e8ad)

15 years agoShow query/verify selection options just once in --help
Panu Matilainen [Thu, 19 Mar 2009 14:07:18 +0000 (16:07 +0200)]
Show query/verify selection options just once in --help
(cherry picked from commit 2e672f3fae9d8ff7ee64ae13cfa2fe65272c2ede)

15 years agoPython doesn't need libelf, nss or popt directly
Panu Matilainen [Thu, 19 Mar 2009 12:56:45 +0000 (14:56 +0200)]
Python doesn't need libelf, nss or popt directly
(cherry picked from commit 46f1247a276a66561b49f97364558bf8f89d2354)

15 years agolibrpmio doesn't need libmagic for anything
Panu Matilainen [Thu, 19 Mar 2009 12:41:43 +0000 (14:41 +0200)]
librpmio doesn't need libmagic for anything
(cherry picked from commit 1df4d34fb97cd25134a89c06386b55dc98aa92f6)

15 years agoMove leftover signature stuff from rpmlib.h to signature.h
Panu Matilainen [Tue, 17 Mar 2009 14:33:12 +0000 (16:33 +0200)]
Move leftover signature stuff from rpmlib.h to signature.h
- these aren't really usable or useful outside rpm, and even less so
  as all the rest of the signature stuff is in a private header too
(cherry picked from commit fd2658ec8434768f75a6b6d007f7df5415f44004)

15 years agoDon't try to parse %patch on spec query (rhbz#487855)
Panu Matilainen [Wed, 18 Mar 2009 12:53:34 +0000 (14:53 +0200)]
Don't try to parse %patch on spec query (rhbz#487855)
(cherry picked from commit 54b027535f95fea9088f2cd12ed765fddb20c5c1)

15 years agoDoxygen parameter name mismatch
Panu Matilainen [Wed, 18 Mar 2009 09:57:16 +0000 (11:57 +0200)]
Doxygen parameter name mismatch
(cherry picked from commit b187977fee788888007409465c7efa644d20ddef)

15 years agoAdd support for "lzma alone" compression format (lzdio)
Panu Matilainen [Wed, 18 Mar 2009 09:24:52 +0000 (11:24 +0200)]
Add support for "lzma alone" compression format (lzdio)
- "lzma alone" is superseeded by XZ but it's used by Suse and Mandriva
  distros so it's nice to have as it doesn't need much, only open differs
  from XZ
- rpmlib() dependency versions are an uuuuuuuugly mess here: Suse used
  "PayloadIsLzma = 4.4.2-1" so that's what we provide to be most compatible
  (hopefully). Built packages require "PayloadIsLzma <= 4.4.6-1" however
  to be compatible with Mandriva 2008.0. Did I already say it's ugly?
- Based on similar patch in Mandriva by Per Øyvind Karlsen, but avoiding
  unnecessary renames in rpmio
(cherry picked from commit fa0898552d3c52249bc41e8104eda02c1bbd3359)

15 years agoLZMA -> XZ renaming
Panu Matilainen [Wed, 18 Mar 2009 07:42:23 +0000 (09:42 +0200)]
LZMA -> XZ renaming
- what we support now in payloads is XZ, not the former LZMA format, rename
  user- and header-visible parts to match this
- rpmlib(PayloadIsXz) dependency versioned 5.2-1 to avoid unnecessary
  incompatibility with what rpm5 has and what Mandriva is already using
- only provide the rpmlib dependency if actually built with xz support
- rpmFileIsCompressed() attempts to guess the magicless old lzma format
  by file suffix, so it can handle both right now
(cherry picked from commit 8078d0ba24662308b10d9eb0f0da978584b7e757)

15 years agoFree all keys not only those on the first buckets
Florian Festi [Sat, 14 Mar 2009 18:12:43 +0000 (19:12 +0100)]
Free all keys not only those on the first buckets
 - Thanks to Alexey Tourbin for pointing that out!
(cherry picked from commit c769eb0244294c0a9ac002bd7ecd06bddc4cd3ae)

15 years agoCatch exceptions from python conversions in dbMatch()
Panu Matilainen [Fri, 13 Mar 2009 06:55:53 +0000 (08:55 +0200)]
Catch exceptions from python conversions in dbMatch()
- Prior to this, string conversion (eg on unicode object) could fall
  through to rpmtsInitIterator() with key of NULL, matching everything
  and only much later spitting out an obscure traceback. PyInt_FromLong()
  can fail too, causing us to look for bogons.
(cherry picked from commit 9317ebc83f611075874713a1099b1f5aa14c969c)

15 years agoSilence compiler whining on rpmsort and rpminject
Panu Matilainen [Thu, 12 Mar 2009 07:54:31 +0000 (09:54 +0200)]
Silence compiler whining on rpmsort and rpminject
(cherry picked from commit c1180e3c4334b850d50f618f59de09a9ea06a025)

15 years agoPlug a memleak in genCpioListAndHeader()
Panu Matilainen [Wed, 11 Mar 2009 19:43:44 +0000 (21:43 +0200)]
Plug a memleak in genCpioListAndHeader()
(cherry picked from commit 23d202e928d4af945765e501ee8fc7bd0614510e)

15 years agoNSS supports MD2, we might as well handle it too
Panu Matilainen [Wed, 11 Mar 2009 19:41:57 +0000 (21:41 +0200)]
NSS supports MD2, we might as well handle it too
- also getHashType() is a "pure" function, mark it as such
(cherry picked from commit 4cf26d30f8a066f855117d1661b23521e6eed647)

15 years agoFix memleak on signature checking failure
Panu Matilainen [Tue, 10 Mar 2009 09:03:08 +0000 (11:03 +0200)]
Fix memleak on signature checking failure
- early exit from header iteration loop could previously leak from unfreed
  buf and header iterator
(cherry picked from commit 05e16d415492f4925782e3fcf6ef155cbdf124c3)

15 years agoEliminate pointless {} block inflating indentation level
Panu Matilainen [Tue, 10 Mar 2009 09:01:32 +0000 (11:01 +0200)]
Eliminate pointless {} block inflating indentation level
- no functional changes
(cherry picked from commit 493913ed415acf8be26b13a785a9615ba5cb6981)

15 years agoDon't return data from headerGet() on regionSwab() failure
Panu Matilainen [Tue, 10 Mar 2009 08:17:13 +0000 (10:17 +0200)]
Don't return data from headerGet() on regionSwab() failure
- callers dont expect to free data if headerGet() returns failure,
  leaking memory
(cherry picked from commit 65f3e55d3592da8fb482b5344a28013029199115)

15 years agoPort XZ payload compression to xz-4.999.8 API
Jindrich Novy [Mon, 9 Mar 2009 19:19:37 +0000 (20:19 +0100)]
Port XZ payload compression to xz-4.999.8 API
- use SHA256 digests for archive error detection
- use 100MiB peak memory usage for decoding
- use better XZ detection in configure.ac
(cherry picked from commit 74c9a96c3c68de6376ee543d494a97c0f133bfaf)

15 years agoAdd test for _install_lang and status
Panu Matilainen [Mon, 9 Mar 2009 14:44:47 +0000 (16:44 +0200)]
Add test for _install_lang and status
(cherry picked from commit f70830356fd239d66e1aece81973ebc077acbe6e)

15 years agoRevert couple of checksum -> digest renames
Panu Matilainen [Thu, 19 Mar 2009 08:15:49 +0000 (10:15 +0200)]
Revert couple of checksum -> digest renames
- physical cpio header and elf header have checksums, not digests
  (from commit 7acdfded4a82e86a673418c3953aa6bf8106d313)
- doesn't affect functionality though
(cherry picked from commit 298c919c00ffbc6ea988545092b02af5384bd7a4)

15 years agoFix documentation and help for the md5 -> filedigest move
Jindrich Novy [Mon, 2 Mar 2009 09:29:05 +0000 (10:29 +0100)]
Fix documentation and help for the md5 -> filedigest move
- add aliases for obsolete {RPM}VERIFY_MD5 flags to
  not to break API
(cherry picked from commit c45cfb9c047b05ca29acb8d42186e97e17204e27)

15 years agoAdd md5->filedigest aliases (rhbz#487597)
Jindrich Novy [Fri, 27 Feb 2009 13:34:39 +0000 (14:34 +0100)]
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
(cherry picked from commit 7acdfded4a82e86a673418c3953aa6bf8106d313)

15 years ago Polish translation update (Piotr Drąg)
Panu Matilainen [Wed, 1 Apr 2009 10:04:19 +0000 (13:04 +0300)]
 Polish translation update (Piotr Drąg)

15 years agoUnbreak %_install_langs handling (rhbz#489235)
Panu Matilainen [Mon, 9 Mar 2009 12:57:46 +0000 (14:57 +0200)]
Unbreak %_install_langs handling (rhbz#489235)
- using rpmfiFLangs() in skipFiles() broke the %_install_langs logic,
  causing all files to be skipped if install langs, eek
(cherry picked from commit cdcbd324fe41cd729434576200593c0fbda44a19)

15 years agoFix RPMTAG_FILESTATES in rpmdb
Panu Matilainen [Mon, 9 Mar 2009 12:48:47 +0000 (14:48 +0200)]
Fix RPMTAG_FILESTATES in rpmdb
- sizeof(rpmfileState) != sizeof(char), and char is what goes to headers
  resulting in some pretty weird states despite being correct on disk
- add rpm_fstate_t type for the header presentation of states and
  use where appropriate
(cherry picked from commit 2b4507d852ac8469608bef2ce8e219d76b0c543e)

15 years agoInitialize on declaration, cosmetics only...
Panu Matilainen [Sun, 8 Mar 2009 15:38:49 +0000 (17:38 +0200)]
Initialize on declaration, cosmetics only...

15 years agoDont bother retrieving colors unless actually needed
Panu Matilainen [Sun, 8 Mar 2009 15:36:39 +0000 (17:36 +0200)]
Dont bother retrieving colors unless actually needed

15 years agoDont bother retrieving ts problem set unless actually needed
Panu Matilainen [Sun, 8 Mar 2009 15:28:17 +0000 (17:28 +0200)]
Dont bother retrieving ts problem set unless actually needed

15 years agoDont bother retrieving altNEVR unless actually needed
Panu Matilainen [Sun, 8 Mar 2009 15:25:45 +0000 (17:25 +0200)]
Dont bother retrieving altNEVR unless actually needed

15 years agoLoad macros before creating directories (rhbz#489104)
Panu Matilainen [Sun, 8 Mar 2009 09:33:22 +0000 (11:33 +0200)]
Load macros before creating directories (rhbz#489104)
- %_sourcedir and friends can have things like %{name}, load macros
  before trying to create any directories when installing src.rpms
(cherry picked from commit ac7c3412278a03da6633758bca999827d4b59038)

15 years agoDocument libcap, libacl in INSTALL
Panu Matilainen [Fri, 6 Mar 2009 11:43:17 +0000 (13:43 +0200)]
Document libcap, libacl in INSTALL
(cherry picked from commit e9cc481202429ed06b2b0b14cb1b1065df6c8ba7)

15 years agoDont leak memory from hdrmd5ctx
Panu Matilainen [Wed, 4 Mar 2009 11:41:27 +0000 (13:41 +0200)]
Dont leak memory from hdrmd5ctx
(cherry picked from commit 5cb107b843797307e2a0d21018707bd893222fe5)

15 years agoHandle V4 signature trailer for RSA too (ticket #34)
Panu Matilainen [Wed, 4 Mar 2009 11:08:30 +0000 (13:08 +0200)]
Handle V4 signature trailer for RSA too (ticket #34)
(cherry picked from commit d50db40ceed7083467f7b548da7b2fbe96aaec61)

15 years agoAdd ISA bits for alpha (Oliver Falk)
Panu Matilainen [Tue, 3 Mar 2009 06:48:12 +0000 (08:48 +0200)]
Add ISA bits for alpha (Oliver Falk)
(cherry picked from commit d39a6c7de51c0d01ce69ee1f464b94ca70309751)

15 years agoMissing test material to tarballs, oops
Panu Matilainen [Thu, 26 Feb 2009 19:48:06 +0000 (21:48 +0200)]
Missing test material to tarballs, oops
(cherry picked from commit 299a7af7a8acc0fa4979d71dfaebe87658ee0c1d)

15 years agoPreparing for rpm 4.7.0-beta1 rpm-4.7.0-beta1
Panu Matilainen [Thu, 26 Feb 2009 15:17:52 +0000 (17:17 +0200)]
Preparing for rpm 4.7.0-beta1

15 years agoPermit python bytecompile to fail for now
Panu Matilainen [Thu, 26 Feb 2009 15:07:39 +0000 (17:07 +0200)]
Permit python bytecompile to fail for now
- various things like python templates in packages, jython code etc
  blow up on the syntax checking, only warn instead of failing the build
  until parametrized with a spec override possibility

15 years agoHonor --nomanifest on install too
Panu Matilainen [Thu, 26 Feb 2009 14:38:10 +0000 (16:38 +0200)]
Honor --nomanifest on install too
- bit of a kludge but works.. and fixes test case 39

15 years agoSwitch to libtool versioning, starting at 0:0:0
Panu Matilainen [Thu, 26 Feb 2009 14:09:51 +0000 (16:09 +0200)]
Switch to libtool versioning, starting at 0:0:0

15 years agoHandle empty argv passed to rpmdsDupArgv()
Panu Matilainen [Thu, 26 Feb 2009 08:49:38 +0000 (10:49 +0200)]
Handle empty argv passed to rpmdsDupArgv()
- same as 94552b96256c3620b4be407c501d0d926c081963, apt-rpm expects to
  pass empty version as NULL to rpmdsSingle()

15 years agoClean up runTransScripts() a bit
Panu Matilainen [Tue, 24 Feb 2009 12:24:40 +0000 (14:24 +0200)]
Clean up runTransScripts() a bit
- move progtag figuring out of the loop, and return with error code
  instead of asserting on invalid tag

15 years agoSingle point of exit from rpmtsRun()
Panu Matilainen [Tue, 24 Feb 2009 11:55:27 +0000 (13:55 +0200)]
Single point of exit from rpmtsRun()

15 years agoSplit initialization of flags etc out of rpmtsRun()
Panu Matilainen [Tue, 24 Feb 2009 11:41:18 +0000 (13:41 +0200)]
Split initialization of flags etc out of rpmtsRun()

15 years agoFormatting cosmetics only
Panu Matilainen [Tue, 24 Feb 2009 10:35:21 +0000 (12:35 +0200)]
Formatting cosmetics only

15 years agoCalculate need to chroot just once
Panu Matilainen [Tue, 24 Feb 2009 10:31:22 +0000 (12:31 +0200)]
Calculate need to chroot just once

15 years agoEliminate unnecessary variable
Panu Matilainen [Tue, 24 Feb 2009 10:22:21 +0000 (12:22 +0200)]
Eliminate unnecessary variable
- per-fi filecount only used once per loop for stats

15 years agoPush fingerprinting chroot in+out into rpmtsPrepare() too
Panu Matilainen [Tue, 24 Feb 2009 10:13:26 +0000 (12:13 +0200)]
Push fingerprinting chroot in+out into rpmtsPrepare() too
- rpmtsPrepare() can now fail (for chroot), handle exit

15 years agoPush the rest of the prepare-calculations down to rpmtsPrepare()
Panu Matilainen [Tue, 24 Feb 2009 09:50:23 +0000 (11:50 +0200)]
Push the rest of the prepare-calculations down to rpmtsPrepare()
- total file count only needed during prepare, pass around as necessary
- all fingerprinting related activity (skipping files, memory allocations
  etc) are now handled locally from rpmtsPrepare()
- throw out some ancient no longer relevant comments

15 years agoEliminate fingerprint hash from ts struct
Panu Matilainen [Tue, 24 Feb 2009 09:23:25 +0000 (11:23 +0200)]
Eliminate fingerprint hash from ts struct
- only prepare stage needs, alloc+free locally and pass around to
  helpers as necessary

15 years agoSplit fingerprinting stuff out of rpmtsRun()
Panu Matilainen [Tue, 24 Feb 2009 09:15:53 +0000 (11:15 +0200)]
Split fingerprinting stuff out of rpmtsRun()
- only prepare stage needs fingerprint associated caches and hashes,
  push the allocations where needed
- do fingerprint additions in separate function

15 years agoSplit prepare phase out of rpmtsRun()
Panu Matilainen [Tue, 24 Feb 2009 08:40:43 +0000 (10:40 +0200)]
Split prepare phase out of rpmtsRun()

15 years agoFile skipping only done for added packages, simplify
Panu Matilainen [Tue, 24 Feb 2009 08:28:27 +0000 (10:28 +0200)]
File skipping only done for added packages, simplify

15 years agoEliminate unused variables
Panu Matilainen [Tue, 24 Feb 2009 08:24:10 +0000 (10:24 +0200)]
Eliminate unused variables
- numAdded and numRemoved not used for anything at all

15 years agoSplit sanity checking out of rpmtsRun() to helper function
Panu Matilainen [Tue, 24 Feb 2009 08:13:43 +0000 (10:13 +0200)]
Split sanity checking out of rpmtsRun() to helper function
- with file counting done elsewhere, this becomes a clean and obvious split
- ensureOlder() doesn't need ts, just needs the problem set, simplifies
  the problem set refcounting a bit

15 years agoFix memory leak from unused problem set
Panu Matilainen [Tue, 24 Feb 2009 08:10:38 +0000 (10:10 +0200)]
Fix memory leak from unused problem set
- checkInstalledFiles() doesn't need ps for anything, this just caused
  a memleak due to refcount

15 years agoCalculate files in transaction just once
Panu Matilainen [Tue, 24 Feb 2009 07:21:20 +0000 (09:21 +0200)]
Calculate files in transaction just once
- move file counting from rpmtsRun() and rpmFindBaseNamesInDB() to single
  helper, store result in rpmts struct

15 years agoFix busted up Korean tranlations of manuals (rhbz#466597)
Panu Matilainen [Mon, 23 Feb 2009 12:39:48 +0000 (14:39 +0200)]
Fix busted up Korean tranlations of manuals (rhbz#466597)
- previous conversion to utf-8 (from 2003!) was busted, wrong encoding
  or something

15 years agoLoosen up restrictions on dependency token names (rhbz#455119)
Panu Matilainen [Sat, 21 Feb 2009 10:11:54 +0000 (12:11 +0200)]
Loosen up restrictions on dependency token names (rhbz#455119)
- Package names aren't restricted to ascii, no point restricting
  dependency names either.
- This lets UTF-8 to go through but also all sorts of other junk but
  as we haven't got a clue about the specs encoding, no can do. So we
  only check for bad characters from plain ascii.

15 years agoOnly run script dependency extraction once per file, duh...
Panu Matilainen [Fri, 20 Feb 2009 20:02:49 +0000 (22:02 +0200)]
Only run script dependency extraction once per file, duh...

15 years agoCheck for errors from python bytecompile (Tim Waugh)
Panu Matilainen [Fri, 20 Feb 2009 19:44:13 +0000 (21:44 +0200)]
Check for errors from python bytecompile (Tim Waugh)
- since we're byte-compiling all python pieces, might as well use the
  opportunity to catch syntax errors while at it

15 years agoRevert fix for rhbz#442105, it has unwanted side effects
Jindrich Novy [Wed, 18 Feb 2009 07:11:18 +0000 (08:11 +0100)]
Revert fix for rhbz#442105, it has unwanted side effects
- mainly RPMTAG_BUILDARCHS missing from SRPM in case of BuildArch: noarch

15 years ago-Moved maifest checking from rpmInstall to rpmCheckManifest.
Rakesh Pandit [Thu, 12 Feb 2009 12:27:35 +0000 (17:57 +0530)]
-Moved maifest checking from rpmInstall to rpmCheckManifest.

15 years ago-Move notify flag settings from rpmInstall and rpmErase to setNotifyFlag.
Rakesh Pandit [Thu, 12 Feb 2009 12:00:21 +0000 (17:30 +0530)]
-Move notify flag settings from rpmInstall and rpmErase to setNotifyFlag.

15 years ago-Move vsflags calculation from rpmInstall and rpmErase to setvsFlags.
Rakesh Pandit [Thu, 12 Feb 2009 11:55:09 +0000 (17:25 +0530)]
-Move vsflags calculation from rpmInstall and rpmErase to setvsFlags.

15 years ago-Remove stopinstall variable and moved rpmcliPackagesTotal to correct place. -Changes...
Rakesh Pandit [Thu, 12 Feb 2009 11:43:20 +0000 (17:13 +0530)]
-Remove stopinstall variable and moved rpmcliPackagesTotal to correct place. -Changes in rpmInstallSource for getting reused in install mode and removed.

15 years ago-Use installInterfaceFlags in place of eraseInterfaceFlags. -Moved transaction part...
Rakesh Pandit [Thu, 12 Feb 2009 10:24:31 +0000 (15:54 +0530)]
-Use installInterfaceFlags in place of eraseInterfaceFlags. -Moved transaction part from rpmInstall and rpmErase to rpmcliTransaction.

15 years ago-Merge rpmInstallInterfaceFlags_e and rpmEraseInterfaceFlags_e to rpmInstallFlags_e.
Rakesh Pandit [Thu, 12 Feb 2009 10:19:28 +0000 (15:49 +0530)]
-Merge rpmInstallInterfaceFlags_e and rpmEraseInterfaceFlags_e to rpmInstallFlags_e.

15 years agoOnly initialize file capability cache if actually needed
Panu Matilainen [Thu, 12 Feb 2009 12:11:22 +0000 (14:11 +0200)]
Only initialize file capability cache if actually needed
- very few packages are going to have RPMTAG_FILECAPS at all

15 years agoFix output of pkgconfigdeps.sh so that rpmfc parses it correctly
Jindrich Novy [Wed, 11 Feb 2009 12:19:22 +0000 (13:19 +0100)]
Fix output of pkgconfigdeps.sh so that rpmfc parses it correctly

15 years agoBe more careful about errors in lua rpm vercmp()
Panu Matilainen [Tue, 10 Feb 2009 12:11:28 +0000 (14:11 +0200)]
Be more careful about errors in lua rpm vercmp()

15 years agoHandle broken pkgconfig files better, rhbz#484970 (Lubomir Rintel)
Jindrich Novy [Wed, 11 Feb 2009 09:03:16 +0000 (10:03 +0100)]
Handle broken pkgconfig files better, rhbz#484970 (Lubomir Rintel)

15 years agoBump FileDigests rpmlib dependency version
Panu Matilainen [Fri, 6 Feb 2009 07:10:23 +0000 (09:10 +0200)]
Bump FileDigests rpmlib dependency version
- should've really been in commit 1f6ad324dbf4bebec905ddbb76d274345673a5b3,
  the tag adjustment is an incompatible change from what was in
  rpm 4.6.0-rc's, ugh

15 years agoUse per-rpmfi string cache for file capability strings
Panu Matilainen [Thu, 5 Feb 2009 20:37:27 +0000 (22:37 +0200)]
Use per-rpmfi string cache for file capability strings
- most packages wont have file capabilities attached at all, and even
  where present, the files with capabilities are likely to be few and
  far in between, avoid wasting memory

15 years agorpmfi is only needed by verifyHeader(), push it there
Panu Matilainen [Thu, 5 Feb 2009 15:22:00 +0000 (17:22 +0200)]
rpmfi is only needed by verifyHeader(), push it there
- no functional changes, just slight reorganization

15 years agoFix typo in python bindings documentation (Masatake YAMATO)
Panu Matilainen [Thu, 5 Feb 2009 10:34:07 +0000 (12:34 +0200)]
Fix typo in python bindings documentation (Masatake YAMATO)

15 years agoExclude bin and sbin directories from python bytecompile (rhbz#182498)
Panu Matilainen [Thu, 5 Feb 2009 10:20:20 +0000 (12:20 +0200)]
Exclude bin and sbin directories from python bytecompile (rhbz#182498)

15 years agoUpdated Brazilian Portugese translation (Igor Pires Soares)
Panu Matilainen [Thu, 5 Feb 2009 09:36:58 +0000 (11:36 +0200)]
Updated Brazilian Portugese translation (Igor Pires Soares)