tools/librpm-tizen.git
15 years agoUse rpmteSetFI() to clear memory instead of direct access
Panu Matilainen [Fri, 19 Dec 2008 12:13:48 +0000 (14:13 +0200)]
Use rpmteSetFI() to clear memory instead of direct access
- also fixes memleak in case rpmfi has no files

15 years agoAdd rpmteSetFI() ts element method
Panu Matilainen [Fri, 19 Dec 2008 12:04:18 +0000 (14:04 +0200)]
Add rpmteSetFI() ts element method

15 years agoFree rpmfi fingerprints in rpmfiFree()
Panu Matilainen [Fri, 19 Dec 2008 11:18:31 +0000 (13:18 +0200)]
Free rpmfi fingerprints in rpmfiFree()

15 years agoReduce the hash size of the fingerPrintCache by factor 4
Florian Festi [Thu, 18 Dec 2008 10:57:02 +0000 (11:57 +0100)]
Reduce the hash size of the fingerPrintCache by factor 4

15 years agoDo only add symlinks the the first rpmFpHash as these are the only one we really...
Florian Festi [Thu, 18 Dec 2008 10:54:45 +0000 (11:54 +0100)]
Do only add symlinks the the first rpmFpHash as these are the only one we really need in there.
Also reduce the hash size.

15 years agoReduce the size of the FpHashes by factor 4.
Florian Festi [Thu, 18 Dec 2008 08:41:12 +0000 (09:41 +0100)]
Reduce the size of the FpHashes by factor 4.
It turns out that large hashes leave a lot of buckets
empty without really reducing the maximum of collisions
a lot. Tests show that the collision lists are only 2.3
items on average and the maximum is only about 1.5 worse
than with a big hash table (~12 for large hashes).

15 years agoOops, rpmfiFInode() gone missing...
Panu Matilainen [Thu, 18 Dec 2008 09:48:09 +0000 (11:48 +0200)]
Oops, rpmfiFInode() gone missing...
- forgotten from commit 9c15574bae8b11a7381c01a1af39e0d59558bad5

15 years agoCheck chroot() result in psm too (Pixel)
Panu Matilainen [Thu, 18 Dec 2008 08:01:01 +0000 (10:01 +0200)]
Check chroot() result in psm too (Pixel)
- bail out early if it fails instead of blindly continuing and potentially
  messing in real root (chroot can fail for priviledged user too)

15 years agoPermit --noscripts on verify (to disable %verifyscript execution)
Panu Matilainen [Thu, 18 Dec 2008 07:51:37 +0000 (09:51 +0200)]
Permit --noscripts on verify (to disable %verifyscript execution)
- this used to work but got broken by the rpmi/rpmq/... unification

15 years agoCheck for termination signals during query loops
Panu Matilainen [Mon, 15 Dec 2008 08:26:45 +0000 (10:26 +0200)]
Check for termination signals during query loops

15 years agoAdd public rpmfi function for retrieving digest algorithm of the set
Panu Matilainen [Thu, 11 Dec 2008 08:17:48 +0000 (10:17 +0200)]
Add public rpmfi function for retrieving digest algorithm of the set
- the information is already available through rpmfiFDigest() but that
  requires valid iteration index to be active, whereas the digest algo
  is per info set, not per file

15 years agoAvoid direct access to rpmfi directory indexes
Panu Matilainen [Thu, 11 Dec 2008 08:11:59 +0000 (10:11 +0200)]
Avoid direct access to rpmfi directory indexes

15 years agoAdd (internal) rpmfi accessor for dir indexes
Panu Matilainen [Thu, 11 Dec 2008 08:07:41 +0000 (10:07 +0200)]
Add (internal) rpmfi accessor for dir indexes
- except for dnli->active setting in dnlInitIterator(), "give me
  directory matching this basename index" would be sufficient

15 years agoMore rpmfi direct access avoidance in fsm
Panu Matilainen [Thu, 11 Dec 2008 08:01:10 +0000 (10:01 +0200)]
More rpmfi direct access avoidance in fsm
- the remaining bits need further accessors / refactoring

15 years agoAvoid most of direct rpmfi accesses in dnlInitIterator()
Panu Matilainen [Thu, 11 Dec 2008 07:54:29 +0000 (09:54 +0200)]
Avoid most of direct rpmfi accesses in dnlInitIterator()
- need to add an accessor function for fi->dil info

15 years agoAvoid bunch of now unnecessary direct accesses to rpmfi struct in fsm
Panu Matilainen [Thu, 11 Dec 2008 07:52:31 +0000 (09:52 +0200)]
Avoid bunch of now unnecessary direct accesses to rpmfi struct in fsm

15 years agoUse indexed accessors instead of direct rpmfi struct access in fsmMapFCaps()
Panu Matilainen [Thu, 11 Dec 2008 07:23:40 +0000 (09:23 +0200)]
Use indexed accessors instead of direct rpmfi struct access in fsmMapFCaps()
- also rpmts is unused here, remove

15 years agoAvoid bunch of unnecessary direct fi-> accesses for file and dir count
Panu Matilainen [Thu, 27 Nov 2008 09:19:24 +0000 (11:19 +0200)]
Avoid bunch of unnecessary direct fi-> accesses for file and dir count

15 years agoUse indexed rpmfi accessors instead of fiddling with iterator index
Panu Matilainen [Thu, 11 Dec 2008 07:15:27 +0000 (09:15 +0200)]
Use indexed rpmfi accessors instead of fiddling with iterator index
- saving and restoring rpmfi iterator index has unwanted side-effects
- reverts brokenness from 6fd987b7291fb1306297c193f4ab01bf6cd02618

15 years agoAdd indexed accessors for rpmfi data, internal only for now
Panu Matilainen [Thu, 11 Dec 2008 06:57:16 +0000 (08:57 +0200)]
Add indexed accessors for rpmfi data, internal only for now
- fsm in particular wants random access to rpmfi data and there's little
  reason to deny it, file info data is not going to move to linked lists
  or anything like that anytime soon, permitting indexed access allows
  eliminating direct accesses to rpmfi struct

15 years agouse RPMFI_KEEPHEADER instead of numerical constant
Florian Festi [Mon, 8 Dec 2008 16:46:36 +0000 (17:46 +0100)]
use RPMFI_KEEPHEADER instead of numerical constant

15 years agoKill rpmfiUpdateState and free all the rpmfis as soon as file conflict check is done
Florian Festi [Wed, 3 Dec 2008 09:59:05 +0000 (10:59 +0100)]
Kill rpmfiUpdateState and free all the rpmfis as soon as file conflict check is done

15 years agoMove ->actions from rpmfi to rpmfs
Florian Festi [Wed, 3 Dec 2008 09:39:48 +0000 (10:39 +0100)]
Move ->actions from rpmfi to rpmfs
and adjust all code using it
also "revert" a4e345455d817ce6c56940600d652ee3ae0aa5d5
 "Move file action calculations to rpmfiNew() where possible"

15 years agoMove the run time part of fstates from rpmfi to rpmfs. Keep fstates in rpmfi as long...
Florian Festi [Tue, 2 Dec 2008 09:11:44 +0000 (10:11 +0100)]
Move the run time part of fstates from rpmfi to rpmfs. Keep fstates in rpmfi as long as it is a real tag read from the rpmdb.

15 years agoCreate a new datastructure rpmfs aka File States that contains the information what...
Florian Festi [Mon, 1 Dec 2008 20:34:59 +0000 (21:34 +0100)]
Create a new datastructure rpmfs aka File States that contains the information what to do with the files of an transaction element.
This patch moves rpmfi->replaced over to rpmfs. Move struct members to follow.

15 years agoNuke the useless bits of rpmsort.c declared in global scope
Jindrich Novy [Tue, 9 Dec 2008 15:24:16 +0000 (16:24 +0100)]
Nuke the useless bits of rpmsort.c declared in global scope

15 years agoUpdate testsuite expectations as per array format change, add another test
Panu Matilainen [Tue, 9 Dec 2008 12:58:43 +0000 (14:58 +0200)]
Update testsuite expectations as per array format change, add another test

15 years agoReturn nothing at all on empty array queryformats
Panu Matilainen [Tue, 9 Dec 2008 12:52:12 +0000 (14:52 +0200)]
Return nothing at all on empty array queryformats
- (none) might make some sense on non-existent tags elsewhere but
  it's plain annoying on arrays

15 years agoThrow out ancient python/ChangeLog
Panu Matilainen [Tue, 9 Dec 2008 12:15:45 +0000 (14:15 +0200)]
Throw out ancient python/ChangeLog

15 years agoMove declarations of local variables for parsing functions
Jindrich Novy [Tue, 9 Dec 2008 11:47:50 +0000 (12:47 +0100)]
Move declarations of local variables for parsing functions
from global scope. Compilers aren't that stupid these days

15 years agoTest for fakechroot in configure
Panu Matilainen [Tue, 9 Dec 2008 11:23:00 +0000 (13:23 +0200)]
Test for fakechroot in configure
- only needed by the testsuite
- optimally testsuite should skip parts needing fakechroot if it's not
  there but at least this'll leave a trace into rpmtests.log...

15 years agoAdd "deptype" format extension
Panu Matilainen [Tue, 9 Dec 2008 08:06:39 +0000 (10:06 +0200)]
Add "deptype" format extension

15 years agoOops, missing wrappers for C++ in headers (ticket #12)
Panu Matilainen [Tue, 9 Dec 2008 07:51:17 +0000 (09:51 +0200)]
Oops, missing wrappers for C++ in headers (ticket #12)

15 years agoWork around broken packages which dont have RPMTAG_SOURCERPM
Panu Matilainen [Mon, 8 Dec 2008 17:51:10 +0000 (19:51 +0200)]
Work around broken packages which dont have RPMTAG_SOURCERPM
- check the lead type and headerIsSource() agree on the type and if not,
  fix it up based on the information in lead

15 years agoAdd function to retrieve type from rpmlead
Panu Matilainen [Mon, 8 Dec 2008 17:50:07 +0000 (19:50 +0200)]
Add function to retrieve type from rpmlead
- for some messed up packages there's no other reliable way to determine
  source vs binary than looking at the lead :-/

15 years agoFix segfault on packages without separate scriptlet program tags (rhbz#475214)
Panu Matilainen [Mon, 8 Dec 2008 16:46:02 +0000 (18:46 +0200)]
Fix segfault on packages without separate scriptlet program tags (rhbz#475214)

15 years agoFix pkg-config provide generation on interdependent .pc's (rhbz#473814)
Panu Matilainen [Fri, 5 Dec 2008 19:44:43 +0000 (21:44 +0200)]
Fix pkg-config provide generation on interdependent .pc's (rhbz#473814)
- based on Arjan van de Ven's and Dan Nicholson's suggestions

15 years agoAvoid "template" which is a reserved word in C++
Panu Matilainen [Fri, 5 Dec 2008 19:17:16 +0000 (21:17 +0200)]
Avoid "template" which is a reserved word in C++

15 years agoTighten up setting and checking of buildroot (ticket #10)
Panu Matilainen [Fri, 5 Dec 2008 11:38:30 +0000 (13:38 +0200)]
Tighten up setting and checking of buildroot (ticket #10)
- expand, set and verify buildroot just once for after main package preamble
  is parsed to avoid sub-packages from overriding it
- spec can still mess with %buildroot by defining it to something else
  after preamble but that's another issue...

15 years agoAdjust test result to meet current expectation
Panu Matilainen [Thu, 4 Dec 2008 20:30:35 +0000 (22:30 +0200)]
Adjust test result to meet current expectation

15 years agoPay more attention to tag extension return codes
Panu Matilainen [Thu, 4 Dec 2008 19:55:52 +0000 (21:55 +0200)]
Pay more attention to tag extension return codes
- behave like headerGet() does and return failure if there's no data
  to return
- some cases where we used to return nothing previously now return (none)
  in query, but the former behavior was inconsistent between tags
- not sure if (none) is really wanted for a return of no value always,
  but at least it's consistent now

15 years agoFix triggerconds return when no data is there (rhbz#474550)
Panu Matilainen [Thu, 4 Dec 2008 17:10:41 +0000 (19:10 +0200)]
Fix triggerconds return when no data is there (rhbz#474550)

15 years agoAvoid rpmtd abuse to report "(none)" when no data is found
Panu Matilainen [Thu, 4 Dec 2008 17:04:14 +0000 (19:04 +0200)]
Avoid rpmtd abuse to report "(none)" when no data is found
- simplifies things quite a bit and avoids having to deal with
  numeric data suddenly appearing as string elsewhere

15 years agoComment out rpmbuild --root tests
Panu Matilainen [Thu, 4 Dec 2008 19:25:12 +0000 (21:25 +0200)]
Comment out rpmbuild --root tests
- no point testing what's not really ever been implemented

15 years agoAdd a pile of queryformat tests
Panu Matilainen [Thu, 4 Dec 2008 19:23:06 +0000 (21:23 +0200)]
Add a pile of queryformat tests
- a few fail, and for a reason (rhbz#474550 and breakage from
  tag class changes)

15 years agoFix python header retrieval return type for non-existent tags (rhbz#473239)
Panu Matilainen [Thu, 4 Dec 2008 08:23:40 +0000 (10:23 +0200)]
Fix python header retrieval return type for non-existent tags (rhbz#473239)
- array / not array return needs to be honored even when tag doesn't exist,
  wtf have I been thinking, duh!

15 years agoAdd tests to verify on-disk status after install+erase
Panu Matilainen [Wed, 3 Dec 2008 12:56:52 +0000 (14:56 +0200)]
Add tests to verify on-disk status after install+erase

15 years agoAdd test to verify status of installed files
Panu Matilainen [Wed, 3 Dec 2008 12:17:25 +0000 (14:17 +0200)]
Add test to verify status of installed files

15 years agoRemove unnecessary fiddling with rpmte internals
Panu Matilainen [Wed, 3 Dec 2008 09:29:19 +0000 (11:29 +0200)]
Remove unnecessary fiddling with rpmte internals
- rpmtsClean() will free the transaction element we added and rpmteFree()
  will in turn close the file descriptor, free headers etc

15 years agoInclude rpmfileutil.h from rpmmacro.h so that
Jindrich Novy [Mon, 1 Dec 2008 11:16:56 +0000 (12:16 +0100)]
Include rpmfileutil.h from rpmmacro.h so that
prototype for rpmGenPath() is included (rhbz#473420)
- unbreaks net-snmp

15 years agoRetrieve header from rpmdb on rpmteOpen() if possible, even for TR_ADDED
Panu Matilainen [Mon, 1 Dec 2008 11:03:05 +0000 (13:03 +0200)]
Retrieve header from rpmdb on rpmteOpen() if possible, even for TR_ADDED
- as rpmte now knows if it was already installed and the exact rpmdb
  record, we can avoid having to re-re-re-open the package in %posttrans,
  this means yum & the like can throw away package immediately after
  it was processed (rhbz#457126)
- rearrange rpmteOpen() code a bit, split the actual header retrievals
  from fd/rpmdb to separate static helper functions

15 years agoSet/clear rpmte db instance on RPMDB_ADD / REMOVE from psm
Panu Matilainen [Sun, 30 Nov 2008 15:36:46 +0000 (17:36 +0200)]
Set/clear rpmte db instance on RPMDB_ADD / REMOVE from psm
- transaction elements now know their real status all the time now

15 years agoRecord header instance on rpmdbAdd() on success
Panu Matilainen [Sun, 30 Nov 2008 15:28:11 +0000 (17:28 +0200)]
Record header instance on rpmdbAdd() on success

15 years agoAdd and use (internal) method for setting header instance
Panu Matilainen [Sun, 30 Nov 2008 15:22:24 +0000 (17:22 +0200)]
Add and use (internal) method for setting header instance
- avoid mucking with header internals directly...

15 years agoMove install langs to per-transaction level
Panu Matilainen [Sun, 30 Nov 2008 12:07:03 +0000 (14:07 +0200)]
Move install langs to per-transaction level
- install langs is clearly a per-transaction thing, avoid checking
  and splitting etc over and over for every package
- also if any of the %{_install_lang} is "all", disable all language
  processing as we'll be installing every language anyway

15 years agoMove netsharedpaths to per-transaction level
Panu Matilainen [Sun, 30 Nov 2008 11:51:32 +0000 (13:51 +0200)]
Move netsharedpaths to per-transaction level
- netsharedpaths is clearly a per-transaction thing, avoid checking
  and splitting etc over and over for every package

15 years agoEliminate unused filename field in rpmts_s
Panu Matilainen [Sun, 30 Nov 2008 11:02:34 +0000 (13:02 +0200)]
Eliminate unused filename field in rpmts_s

15 years agoRead default popt aliases again (rhbz#473167)
Panu Matilainen [Sat, 29 Nov 2008 12:34:01 +0000 (14:34 +0200)]
Read default popt aliases again (rhbz#473167)
- makes testsuite depend on local aliases but using default popt config
  is widely documented and needs to work, testsuite needs a better method
  of disabling it if necessary

15 years agoUnify dbiIndexSet allocations, allocate in power-of-two sizes
Panu Matilainen [Sat, 29 Nov 2008 11:52:32 +0000 (13:52 +0200)]
Unify dbiIndexSet allocations, allocate in power-of-two sizes
- allocating in even sized chunks helps avoiding crazy memory fragmentation
  when resizing a lot (rhbz#472507)
- HEAD doesn't really need, rpm 4.6.x does, but doesn't hurt either...

15 years agoUse proper type (unsigned) for index set offset/count
Panu Matilainen [Sat, 29 Nov 2008 10:04:46 +0000 (12:04 +0200)]
Use proper type (unsigned) for index set offset/count

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.