platform/upstream/rpm.git
15 years agoDelete _dbiIndexItem.fpNum as it is no longer used and also does not really fit in...
Florian Festi [Fri, 28 Nov 2008 11:16:00 +0000 (12:16 +0100)]
Delete _dbiIndexItem.fpNum as it is no longer used and also does not really fit in there

15 years agoDelete rpmdbFindFpList and skipDir
Florian Festi [Fri, 28 Nov 2008 10:14:41 +0000 (11:14 +0100)]
Delete rpmdbFindFpList and skipDir
as those are replaced by rpmFindBaseNamesInDB
and parts of checkInstalledFiles

15 years agoOops, it wasn't unnecessary include afterall..
Panu Matilainen [Thu, 27 Nov 2008 09:35:56 +0000 (11:35 +0200)]
Oops, it wasn't unnecessary include afterall..

15 years agoRemove unnecessary rpmfi_internal.h include
Panu Matilainen [Thu, 27 Nov 2008 08:59:14 +0000 (10:59 +0200)]
Remove unnecessary rpmfi_internal.h include

15 years agoAdd + use internal rpmteHaveTransScript() function
Panu Matilainen [Thu, 27 Nov 2008 08:48:22 +0000 (10:48 +0200)]
Add + use internal rpmteHaveTransScript() function
- struct rpmte_s is now fully opaque within transaction.c

15 years agoEliminate the now unused ts element field of file info sets
Panu Matilainen [Thu, 27 Nov 2008 08:28:10 +0000 (10:28 +0200)]
Eliminate the now unused ts element field of file info sets

15 years agoEliminate rpmtsiFi(), use rpmteFI() instead
Panu Matilainen [Thu, 27 Nov 2008 08:25:47 +0000 (10:25 +0200)]
Eliminate rpmtsiFi(), use rpmteFI() instead
- rpmtsiFi() is only used within iteration, so we already have the
  element, no point in recalculating it
- also eliminates the sneaky side-effect of setting fi->te which otherwise
  wouldn't exit

15 years agoAvoid unnecessary use of file info sets transaction element
Panu Matilainen [Thu, 27 Nov 2008 08:22:45 +0000 (10:22 +0200)]
Avoid unnecessary use of file info sets transaction element
- ts element is available, no need to go backwards

15 years agoDrop the useless "tag" argument from rpmteFI()
Panu Matilainen [Thu, 27 Nov 2008 08:02:00 +0000 (10:02 +0200)]
Drop the useless "tag" argument from rpmteFI()
- only RPMTAG_BASENAMES was ever allowed as the tag, makes no sense
- API change but AFAIK nothing outside rpm itself uses it anyway

15 years agoEliminate silly rpmfiTypeString()
Panu Matilainen [Thu, 27 Nov 2008 07:39:40 +0000 (09:39 +0200)]
Eliminate silly rpmfiTypeString()
- Transaction elements are install/erase type, not file info sets,
  rename to rpmteTypeString(). It's only "useful" for fsm internal
  debugging messages, hide it there.

15 years agoEliminate fi->te use in fsm
Panu Matilainen [Wed, 26 Nov 2008 14:14:29 +0000 (16:14 +0200)]
Eliminate fi->te use in fsm

15 years agoPass rpmte to fsmSetup()
Panu Matilainen [Wed, 26 Nov 2008 14:08:04 +0000 (16:08 +0200)]
Pass rpmte to fsmSetup()
- fsm needs the transaction element for progress notification and
  element type anyway

15 years agoRemove bogus consts from fsmSetup() args
Panu Matilainen [Wed, 26 Nov 2008 14:01:40 +0000 (16:01 +0200)]
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

15 years agoUse rpmteNEVRA() for scriptlet messages now that it's possible
Panu Matilainen [Wed, 26 Nov 2008 17:04:02 +0000 (19:04 +0200)]
Use rpmteNEVRA() for scriptlet messages now that it's possible

15 years agoIncrease memory limit for LZMA compression
Jindrich Novy [Wed, 26 Nov 2008 15:43:49 +0000 (16:43 +0100)]
Increase memory limit for LZMA compression
so that everything up to level 9 gets safely
expanded

15 years agoInitialize the LZMA encoder/decoder on demand, not both
Jindrich Novy [Wed, 26 Nov 2008 15:35:07 +0000 (16:35 +0100)]
Initialize the LZMA encoder/decoder on demand, not both

15 years agoFix up couple of missed pieces rpmffi_s fi->te switchover
Panu Matilainen [Wed, 26 Nov 2008 15:41:22 +0000 (17:41 +0200)]
Fix up couple of missed pieces rpmffi_s fi->te switchover

15 years agorunTransScripts() don't need no steenking rpmfi's now
Panu Matilainen [Tue, 25 Nov 2008 15:05:26 +0000 (17:05 +0200)]
runTransScripts() don't need no steenking rpmfi's now

15 years agoLose unnecessary and silly rpmpsmGetTs() internal func
Panu Matilainen [Tue, 25 Nov 2008 14:35:21 +0000 (16:35 +0200)]
Lose unnecessary and silly rpmpsmGetTs() internal func

15 years agoResurrect rpmVerifyScript()
Panu Matilainen [Tue, 25 Nov 2008 14:32:36 +0000 (16:32 +0200)]
Resurrect rpmVerifyScript()
- fake up a transction element set that we can use to convince psm to
  execute the script
- a bit hacky but by no means worse than the former fi->h abuse with
  scaremem and all

15 years agoRip the remains of fi->h in psm
Panu Matilainen [Tue, 25 Nov 2008 12:01:38 +0000 (14:01 +0200)]
Rip the remains of fi->h in psm
- erasure doesn't need the special casing anymore
- remove useless comments

15 years agoUse ts element, not fi header for PSM_PKGINSTALL (PSM_POST + PSM_INIT)
Panu Matilainen [Tue, 25 Nov 2008 11:44:51 +0000 (13:44 +0200)]
Use ts element, not fi header for PSM_PKGINSTALL (PSM_POST + PSM_INIT)

15 years agoUse ts element, not fi header in PSM_RPMIO_FLAGS and PSM_RPMDB_ADD
Panu Matilainen [Tue, 25 Nov 2008 10:53:46 +0000 (12:53 +0200)]
Use ts element, not fi header in PSM_RPMIO_FLAGS and PSM_RPMDB_ADD

15 years agoMake psm scriptlet operations use ts element header instead of fi
Panu Matilainen [Tue, 25 Nov 2008 10:39:37 +0000 (12:39 +0200)]
Make psm scriptlet operations use ts element header instead of fi
- this breaks %verifyscript operation (temporarily)

15 years agoLose now unnecessary PSM_RPMDB_LOAD stage and rpmpsmSetFI()
Panu Matilainen [Tue, 25 Nov 2008 10:22:10 +0000 (12:22 +0200)]
Lose now unnecessary PSM_RPMDB_LOAD stage and rpmpsmSetFI()

15 years agoRework rpmtsProcess() to use rpmteOpen+Close for both install and erase
Panu Matilainen [Tue, 25 Nov 2008 10:17:47 +0000 (12:17 +0200)]
Rework rpmtsProcess() to use rpmteOpen+Close for both install and erase
- both cases behave fairly symmetrically now
- helps streamlining the process, we get the transaction element and
  file info for it before creating the package state machine so we dont'
  need to fuss around with updated file info etc

15 years agoTeach rpmteOpen() and rpmteClose() about TR_REMOVED type
Panu Matilainen [Tue, 25 Nov 2008 09:51:30 +0000 (11:51 +0200)]
Teach rpmteOpen() and rpmteClose() about TR_REMOVED type
- for open, fetch the header from rpmdb, closing is nearly a no-op
- allows install and erase behave more symmetrically, and also paving way
  for better erase callback notifications and other things
- watch out for them refcounts...

15 years agoRecord failure of install/erase into transaction elements
Panu Matilainen [Tue, 25 Nov 2008 09:46:20 +0000 (11:46 +0200)]
Record failure of install/erase into transaction elements
- add rpmteMarkFailed() (internal) and rpmteFailed() methods to rpmte
- skip any elements marked as failed in rpmtsProcess()
- this is fairly close to the previous "now mostly broken" hack, except
  we remember more than one failure so it's slightly better and it's
  possible to do much better by making rpmteMarkFailed() smarter

15 years agoChange rpmffi_s to contain a rpmte instead of rpmfi to be able to get rid of fi->te
Florian Festi [Wed, 26 Nov 2008 15:29:55 +0000 (16:29 +0100)]
Change rpmffi_s to contain a rpmte instead of rpmfi to be able to get rid of fi->te

15 years agoDon't bother zeroing rpmte twice on free
Panu Matilainen [Wed, 26 Nov 2008 06:58:35 +0000 (08:58 +0200)]
Don't bother zeroing rpmte twice on free
- delTE() already zeroes it out

15 years agoAdd rpmhash.[CH] to EXTRA_DIST so they get included in tarballs
Panu Matilainen [Tue, 25 Nov 2008 16:06:31 +0000 (18:06 +0200)]
Add rpmhash.[CH] to EXTRA_DIST so they get included in tarballs

15 years agoSwitch rpmfiUpdateState to the new ->replaced API
Florian Festi [Tue, 25 Nov 2008 15:05:00 +0000 (16:05 +0100)]
Switch rpmfiUpdateState to the new ->replaced API
and free the additional allocated but unused memory

15 years agoKill handleRmvdInstalledFile by moving remaining code to checkInstalledFiles
Florian Festi [Tue, 25 Nov 2008 13:33:11 +0000 (14:33 +0100)]
Kill handleRmvdInstalledFile by moving remaining code to checkInstalledFiles
Switch to strict use of rpmtd accessor functions

15 years agoPort LZMA (XZ) support to the new API
Jindrich Novy [Tue, 25 Nov 2008 13:12:50 +0000 (14:12 +0100)]
Port LZMA (XZ) support to the new API
- get rid of the obsolete "alone" LZMA file format
  and hacks around it

15 years agoUse the new LZMA (XZ) magic
Jindrich Novy [Tue, 25 Nov 2008 13:11:08 +0000 (14:11 +0100)]
Use the new LZMA (XZ) magic

15 years agoMove transscripts stuff from rpmfi to rpmte
Panu Matilainen [Mon, 24 Nov 2008 14:45:22 +0000 (16:45 +0200)]
Move transscripts stuff from rpmfi to rpmte
- transaction scripts have zero to do with files...

15 years agoUnify statistics timer calls for install+erase
Panu Matilainen [Mon, 24 Nov 2008 13:39:17 +0000 (15:39 +0200)]
Unify statistics timer calls for install+erase

15 years agoUnify install+remove logging, unnecessary code duplication..
Panu Matilainen [Mon, 24 Nov 2008 13:33:23 +0000 (15:33 +0200)]
Unify install+remove logging, unnecessary code duplication..

15 years agoLift the main install+remove loop out of rpmtsRun()
Panu Matilainen [Mon, 24 Nov 2008 13:31:31 +0000 (15:31 +0200)]
Lift the main install+remove loop out of rpmtsRun()
- no functional changes

15 years agoFix timings and no longer pass the file count more than once.
Florian Festi [Mon, 24 Nov 2008 13:34:59 +0000 (14:34 +0100)]
Fix timings and no longer pass the file count more than once.

15 years agoRemove check that is commented out since ages
Florian Festi [Mon, 24 Nov 2008 13:10:11 +0000 (14:10 +0100)]
Remove check that is commented out since ages

15 years agoRemove no longer needed sharedCmp
Florian Festi [Fri, 21 Nov 2008 14:00:36 +0000 (15:00 +0100)]
Remove no longer needed sharedCmp

15 years agofix statistics for looking up symlinks
Florian Festi [Mon, 24 Nov 2008 12:36:28 +0000 (13:36 +0100)]
fix statistics for looking up symlinks

15 years agoReimplement the check of the files in the transaction against the files in the rpmdb.
Florian Festi [Fri, 7 Nov 2008 09:58:25 +0000 (10:58 +0100)]
Reimplement the check of the files in the transaction against the files in the rpmdb.
Use a global list of packages/files from the rpmdb that may conflict with files in the transaction to avoid loading packages from the rpmdb over and over again.

15 years agoswitch to new rpmfiReplaced API
Florian Festi [Wed, 19 Nov 2008 16:11:59 +0000 (17:11 +0100)]
switch to new rpmfiReplaced API

15 years agoAPI for accessing and creating fi->replaced
Florian Festi [Wed, 19 Nov 2008 16:09:57 +0000 (17:09 +0100)]
API for accessing and creating fi->replaced
 - new API is not compatible with accessing fi->replaced directly!

15 years agoExpose rpmdbSortIterator in rpmdb_internal.h
Florian Festi [Sun, 9 Nov 2008 17:02:20 +0000 (18:02 +0100)]
Expose rpmdbSortIterator in rpmdb_internal.h

15 years agoAdd rpmdbExtendIterator to do repeated searches
Florian Festi [Sun, 9 Nov 2008 16:54:47 +0000 (17:54 +0100)]
Add rpmdbExtendIterator to do repeated searches

15 years agoSupport leaving HTDATATYPE undefined to use hash as key only hash (set)
Florian Festi [Wed, 5 Nov 2008 14:11:55 +0000 (15:11 +0100)]
Support leaving HTDATATYPE undefined to use hash as key only hash (set)

15 years agoAdd couple of tests for symlink <-> directory behavior
Panu Matilainen [Mon, 24 Nov 2008 11:33:41 +0000 (13:33 +0200)]
Add couple of tests for symlink <-> directory behavior

15 years agoRemove RPMCONFIGDIR sedding from Makefiles where no longer necessary
Panu Matilainen [Sat, 22 Nov 2008 16:00:10 +0000 (18:00 +0200)]
Remove RPMCONFIGDIR sedding from Makefiles where no longer necessary

15 years agoDon't bother setting rpmrc specifically in tests
Panu Matilainen [Sat, 22 Nov 2008 15:51:42 +0000 (17:51 +0200)]
Don't bother setting rpmrc specifically in tests
- RPM_CONFIGDIR environment is used

15 years agoRemove -DRPMCONFIG from CPPFLAGS where unnecessary
Panu Matilainen [Sat, 22 Nov 2008 15:47:44 +0000 (17:47 +0200)]
Remove -DRPMCONFIG from CPPFLAGS where unnecessary

15 years agoUse %{_rpmconfigdir} throughout configuration macros and such
Panu Matilainen [Sat, 22 Nov 2008 15:36:05 +0000 (17:36 +0200)]
Use %{_rpmconfigdir} throughout configuration macros and such

15 years agoSet _rpmconfigdir macro on initialization
Panu Matilainen [Sat, 22 Nov 2008 15:21:33 +0000 (17:21 +0200)]
Set _rpmconfigdir macro on initialization

15 years agoUse rpmConfigDir() instead of hardwired path for rpmrc + macro locations
Panu Matilainen [Sat, 22 Nov 2008 15:12:54 +0000 (17:12 +0200)]
Use rpmConfigDir() instead of hardwired path for rpmrc + macro locations

15 years agoUse rpmConfigDir() instead of hardwired value in Lua initialization
Panu Matilainen [Sat, 22 Nov 2008 14:44:33 +0000 (16:44 +0200)]
Use rpmConfigDir() instead of hardwired value in Lua initialization
- userconfig is actually unused

15 years agoUse rpmConfigDir() for finding our popt alias file
Panu Matilainen [Sat, 22 Nov 2008 16:08:40 +0000 (18:08 +0200)]
Use rpmConfigDir() for finding our popt alias file
- this allows popt aliases to be reliably available in tests
- why do we have the popt initialization done twice?

15 years agoAdd function to retrieve rpm config base directory
Panu Matilainen [Sat, 22 Nov 2008 16:06:31 +0000 (18:06 +0200)]
Add function to retrieve rpm config base directory
- one-shot to determine configuration base directory path from
  RPM_CONFIGDIR environement or build-time default
- rpmfileutil is a bit strange place, this would really belong to librpm
  but Lua initialization needs the path so...

15 years agoNuke leftover reference to brp-sparc64-linux
Panu Matilainen [Sat, 22 Nov 2008 13:37:00 +0000 (15:37 +0200)]
Nuke leftover reference to brp-sparc64-linux
- missed from commit cbbb03e3a34d492a7163f5a02f77b7e806702b41

15 years agoAdd keywords to all tests
Panu Matilainen [Sat, 22 Nov 2008 12:07:34 +0000 (14:07 +0200)]
Add keywords to all tests
- just initial groupings to have something there..

15 years agoAdd basic tests for Lua's rpm and posix extensions
Panu Matilainen [Sat, 22 Nov 2008 11:45:17 +0000 (13:45 +0200)]
Add basic tests for Lua's rpm and posix extensions

15 years agoAdd banners for nicer test output
Panu Matilainen [Sat, 22 Nov 2008 11:26:43 +0000 (13:26 +0200)]
Add banners for nicer test output

15 years agoA few more basic macro functionality tests
Panu Matilainen [Sat, 22 Nov 2008 11:20:33 +0000 (13:20 +0200)]
A few more basic macro functionality tests

15 years agoAdd couple of tar build tests + another version of hello tarball
Panu Matilainen [Sat, 22 Nov 2008 09:45:55 +0000 (11:45 +0200)]
Add couple of tar build tests + another version of hello tarball

15 years agoAdd some (trivial) macro evaluation tests
Panu Matilainen [Sat, 22 Nov 2008 09:22:01 +0000 (11:22 +0200)]
Add some (trivial) macro evaluation tests

15 years agoAdd a couple of tests for installing non-existent files and such
Panu Matilainen [Sat, 22 Nov 2008 08:28:59 +0000 (10:28 +0200)]
Add a couple of tests for installing non-existent files and such

15 years agoAdd some basic tests for config file behavior
Panu Matilainen [Fri, 21 Nov 2008 23:15:20 +0000 (01:15 +0200)]
Add some basic tests for config file behavior

15 years agoAdd some basic tests for file conflict behavior
Panu Matilainen [Fri, 21 Nov 2008 21:59:25 +0000 (23:59 +0200)]
Add some basic tests for file conflict behavior

15 years agoAdd basic version comparison testing for install/upgrade
Panu Matilainen [Fri, 21 Nov 2008 21:29:54 +0000 (23:29 +0200)]
Add basic version comparison testing for install/upgrade

15 years agoSimplify the run functions, fix --define behavior
Panu Matilainen [Fri, 21 Nov 2008 21:28:21 +0000 (23:28 +0200)]
Simplify the run functions, fix --define behavior

15 years agoHackery to get rpm install tests to "work" with fakechroot
Panu Matilainen [Fri, 21 Nov 2008 15:48:27 +0000 (17:48 +0200)]
Hackery to get rpm install tests to "work" with fakechroot
- fakechroot throws it's own curveballs into the already mixed up thing,
  copy things to the test dir and set chroot base to that to avoid
  confusion with cwd and such
- klunky and ugly but at least the tests pass now when running non-root

15 years agoAdd + use wrapper function for calling rpm commands in tests
Panu Matilainen [Fri, 21 Nov 2008 15:39:39 +0000 (17:39 +0200)]
Add + use wrapper function for calling rpm commands in tests
- avoids having to define --rcfile etc over and over again

15 years agoKill the last remaining varprefix
Panu Matilainen [Fri, 21 Nov 2008 14:13:03 +0000 (16:13 +0200)]
Kill the last remaining varprefix
- we're just mangling varprefix to localstatedir anyway, might as well
  just avoid that little extra trouble...

15 years agoDefine TOPDIR once in atlocal.in
Panu Matilainen [Fri, 21 Nov 2008 11:28:35 +0000 (13:28 +0200)]
Define TOPDIR once in atlocal.in

15 years agoThese tests are expected to succeed
Panu Matilainen [Fri, 21 Nov 2008 10:02:17 +0000 (12:02 +0200)]
These tests are expected to succeed

15 years agoRpm is supposed to create build tree by itself, don't help it
Panu Matilainen [Fri, 21 Nov 2008 15:59:03 +0000 (17:59 +0200)]
Rpm is supposed to create build tree by itself, don't help it

15 years agoFix build tree creation with relative paths for %_topdir and friends
Panu Matilainen [Fri, 21 Nov 2008 08:04:41 +0000 (10:04 +0200)]
Fix build tree creation with relative paths for %_topdir and friends
- rpmtsRootDir() gives "/" even if root not actually set which makes sense
  for most operations but not when we're creating build directories

15 years agoPermit relative paths in rpmioMkpath() and rpmMkdirs()
Panu Matilainen [Fri, 21 Nov 2008 07:50:53 +0000 (09:50 +0200)]
Permit relative paths in rpmioMkpath() and rpmMkdirs()

15 years agoUpdate --querytags test vrt FILECAPS
Panu Matilainen [Fri, 21 Nov 2008 06:57:12 +0000 (08:57 +0200)]
Update --querytags test vrt FILECAPS

15 years agofpCacheCreate() already doubles the size-hint, dont do it twice
Panu Matilainen [Thu, 20 Nov 2008 09:47:52 +0000 (11:47 +0200)]
fpCacheCreate() already doubles the size-hint, dont do it twice

15 years agoUse per-rpmfi string cache for symlink targets
Panu Matilainen [Thu, 20 Nov 2008 08:26:22 +0000 (10:26 +0200)]
Use per-rpmfi string cache for symlink targets
- few files are actually symlinks so this is very sparse data
- per-rpmfi instead of global as link target names are not that likely
  to be shared across packages
- another few megs saved...

15 years agoAdd functions to create and free string cache(s)
Panu Matilainen [Thu, 20 Nov 2008 08:15:08 +0000 (10:15 +0200)]
Add functions to create and free string cache(s)

15 years agoUse global cache for file languages too
Panu Matilainen [Thu, 20 Nov 2008 07:53:27 +0000 (09:53 +0200)]
Use global cache for file languages too
- there's only a very limited number of language names ever present,
  and most files don't have languages attached at all
- another few megs saved on memory

15 years agoUse rpmfiFLangs() instead of direct access to structure in skipFiles()
Panu Matilainen [Thu, 20 Nov 2008 07:40:46 +0000 (09:40 +0200)]
Use rpmfiFLangs() instead of direct access to structure in skipFiles()

15 years agoAdd rpmfiFLang() method for retrieving file language(s)
Panu Matilainen [Thu, 20 Nov 2008 07:36:47 +0000 (09:36 +0200)]
Add rpmfiFLang() method for retrieving file language(s)
- hardly anything needs outside install internals but it's harmless too...

15 years agoGeneralize the user+group string cache + helpers
Panu Matilainen [Thu, 20 Nov 2008 07:26:12 +0000 (09:26 +0200)]
Generalize the user+group string cache + helpers

15 years agoBe more intelligent about storing file user and group names
Panu Matilainen [Wed, 19 Nov 2008 16:17:56 +0000 (18:17 +0200)]
Be more intelligent about storing file user and group names
- User and group names contain an enormous amount of redundancy: typically
  most files and directories are owned by root:root. Store the each unique
  name just once into global cache and store indexes to the cache into
  rpmfi user + group arrays. This saves several megabytes of memory on
  a transaction of non-trivial size...
- The cache implementation is dumb, but it's not noticeably slower than
  uncached version, copying megs of strings around is not cheap either.
  Easy enough to replace with a hash-table or such if performace becomes
  and issue...

15 years agoMake fsmMapAttrs() use rpmfi methods instead of directly accessing
Panu Matilainen [Wed, 19 Nov 2008 14:07:15 +0000 (16:07 +0200)]
Make fsmMapAttrs() use rpmfi methods instead of directly accessing
- Save rpmfi iteration index on entry, restore on exit to avoid clashing
  with other users of the given file info set. For now...
- Remove unnecessary re-initialization of uid and gid in case not found

15 years agoOops, file modes are needed on erase too to avoid suffixes on directories
Panu Matilainen [Wed, 19 Nov 2008 13:52:03 +0000 (15:52 +0200)]
Oops, file modes are needed on erase too to avoid suffixes on directories

15 years agoUse matching type for fsm->digest to avoid unnecessary cast
Panu Matilainen [Wed, 19 Nov 2008 13:46:02 +0000 (15:46 +0200)]
Use matching type for fsm->digest to avoid unnecessary cast

15 years agoErm erm, really use the rpmfi creation flags in rpmteNew()
Panu Matilainen [Wed, 19 Nov 2008 12:06:37 +0000 (14:06 +0200)]
Erm erm, really use the rpmfi creation flags in rpmteNew()
- this part was missing from 763cbf05b57da940d2972e0b448548481be400c6

15 years agoErm, really do lazy allocation of fi->replacedSizes
Panu Matilainen [Wed, 19 Nov 2008 11:04:07 +0000 (13:04 +0200)]
Erm, really do lazy allocation of fi->replacedSizes
- this part was missing from 9bde09b59969088c06eb6f5b8a2597b2e04bd306

15 years agoAdd + use internal helper function for getting+setting rpmfi replaced sizes
Panu Matilainen [Tue, 18 Nov 2008 10:00:10 +0000 (12:00 +0200)]
Add + use internal helper function for getting+setting rpmfi replaced sizes
- lazy allocation on set, otherwise there's no replaced size - the getter
  deals with this transparently
- saves a fair bit of memory, by no means everything has replaced files...

15 years agoEliminate unnecessary fi->record field
Panu Matilainen [Wed, 19 Nov 2008 09:59:53 +0000 (11:59 +0200)]
Eliminate unnecessary fi->record field
- transaction elements carry the db instance already and is available
  where needed

15 years agoAvoid unnecessary mucking with rpmfi internals
Panu Matilainen [Wed, 19 Nov 2008 08:02:16 +0000 (10:02 +0200)]
Avoid unnecessary mucking with rpmfi internals

15 years agoRefer to psm->te instead of fi->te in rpmpsmStage()
Panu Matilainen [Wed, 19 Nov 2008 07:45:05 +0000 (09:45 +0200)]
Refer to psm->te instead of fi->te in rpmpsmStage()
- transaction element is passed to psm, might as well use it

15 years agoRestore SIGPIPE to default action for scriptlets (rhbz#471591)
Panu Matilainen [Wed, 19 Nov 2008 06:16:03 +0000 (08:16 +0200)]
Restore SIGPIPE to default action for scriptlets (rhbz#471591)

15 years agoUpdated Brazilian Portugese translation from Igor Pires Soares
Panu Matilainen [Wed, 19 Nov 2008 06:10:21 +0000 (08:10 +0200)]
Updated Brazilian Portugese translation from Igor Pires Soares

15 years agoUse finer grained rpmfi creation flags for in rpmteNew()
Panu Matilainen [Tue, 18 Nov 2008 16:54:26 +0000 (18:54 +0200)]
Use finer grained rpmfi creation flags for in rpmteNew()
- also call the erase flags erase, not remove...