summaryrefslogtreecommitdiff
path: root/lib/psm.h
AgeCommit message (Collapse)AuthorFilesLines
2010-03-29Move the little thats left of psm.h into rpmte_internal.hPanu Matilainen1-40/+0
- no functional changes, just shuffling declares around
2010-03-12Turn PSM into a complete blackboxPanu Matilainen1-42/+3
- The psm structures aren't stored or passed around by any users, so there's no need for them to separately allocate and free the struct, bury this all inside rpmpsmRun() which takes care of initialization, actual actions and freeing. - There's also no need for refcounting now as allocations are completely contained within the rpmpsmRun() blackbox. Lose psm-debug foo which was only used for refcount debugging. - No functional changes
2010-02-25Implement pretrans, posttrans and verifyscript as psm goalsPanu Matilainen1-42/+6
- Loose rpmpsmScriptStage() hack and bury the psm details inside the psm implementation - Map the script-only goal enums to the corresponding script tag to avoid having to re-re-re-map stuff unnecessarily - pretrans and posttrans should really be handled as a part of PKG_INSTALL process, but as these stages are disconnected from the main install part we can't remember the state in the psm - it would need to be stashed into transaction elements in the meanwhile
2010-02-25Separate PSM goals from individual stagesPanu Matilainen1-3/+11
- no functional changes - supposedly - nothing outside the PSM should need to know anything about its internals, the general goals need to be sufficient (not the case yet) - define goals to match rpmteType so there's no need to re-re-re-map the operations - loose the big unused individual stage string switch
2010-02-25Yank out a bunch of unused definesPanu Matilainen1-15/+0
2010-02-25Lose now unnecessary progTag from psmPanu Matilainen1-3/+2
- our scriptlet thingie knows which progtag to use for a given script tag already, no need to baby-feed the psm
2010-02-25First rough-cut version of scriptlet abstractionPanu Matilainen1-2/+0
- Split the low-level scriptlet machinery out of psm - New struct to hold the necessary information about scriptlets so we can execute them without having a header at hand. - Trigger handling is hackish and needs more love...
2009-09-10Rip the broken asynchronous psm machineryPanu Matilainen1-3/+0
- it was only "used" for the ldconfig optimization and actually been completely broken since the ordering rewrite
2008-12-19Eliminate file info set argument to rpmpsmNew()Panu Matilainen1-2/+1
- ts element carries the info already, no need for separate argument
2008-11-26Lose unnecessary and silly rpmpsmGetTs() internal funcPanu Matilainen1-7/+0
2008-11-26Lose now unnecessary PSM_RPMDB_LOAD stage and rpmpsmSetFI()Panu Matilainen1-9/+0
2008-10-09Mark psm functions as internalPanu Matilainen1-0/+9
2008-03-17Remove repackage support to finish off with rollbackPanu Matilainen1-1/+0
The two main classes of rollback/repackage need are 1) Gimme back the previous version, this broke XYZ on my system. This is better handled by downgrading to the previous version of original package instead of repackaged garbage. We should maintain real package (version) history somewhere. 2) Upgrade messed up my configuration. Instead of repackaging everything we could be far more intelligent wrt config files, stick them into real version control or at least have hooks to do so. RPMCALLBACK_REPACKAGE_* and RPMTRANS_FLAG_REPACKAGE definitions left around to avoid needlessly breaking everybodys callbacks (for now)
2008-02-05Mass convert (back) to rpmTag as it's usable everywhere nowPanu Matilainen1-1/+1
- cast away a few cases where the enum usage causes ridiculous amount of compiler warnings from unhandled switch-cases
2007-12-17Make psm opaque, add minimal methods to cover internal needsPanu Matilainen1-36/+24
2007-12-08Switch to <rpm/foo.h> style for public headersPanu Matilainen1-2/+2
- adjust include paths accordingly
2007-12-04Eliminate debug junk from the APIPanu Matilainen1-10/+0
- add some helper macros to accomplish the same, easy to enable / disable as needed
2007-12-01Add separate public header for callback declarationsPanu Matilainen1-0/+1
- rpmmessages is empty, lose it - adjust includes
2007-11-23Use #include <x.h> syntax to include public headers.Ralf Corsépius1-1/+1
2007-11-08Minimal protection for rpmsqElem internalsPanu Matilainen1-0/+1
2007-10-28Include "rpmsq.h" instead of <rpmsq.h>.Ralf Corsépius1-1/+1
2007-09-21Unexport rpmpms typedef, nothing outside rpm can use it anywayPanu Matilainen1-0/+2
2007-09-11Remove splint tags.Ralf Corsépius1-45/+10
2003-05-08- don't use error string after gzclose (Dmitry V. Levin).jbj1-1/+1
Spliddles for rpmio, drill h_errno all the way through. CVS patchset: 6826 CVS date: 2003/05/08 20:39:29
2003-04-02Splint clean.jbj1-3/+6
CVS patchset: 6729 CVS date: 2003/04/02 21:16:26
2003-03-19- unify signal handling in librpmio, use condvar to deliver signal.jbj1-0/+1
CVS patchset: 6707 CVS date: 2003/03/19 16:05:49
2003-03-19Sanity.jbj1-1/+2
CVS patchset: 6705 CVS date: 2003/03/19 03:00:02
2003-03-18Proof of concept scriptlet queue, single or multi threaded.jbj1-6/+3
CVS patchset: 6699 CVS date: 2003/03/18 02:41:33
2003-03-16Create rpmsq, combining rpmdb/psm signal handlers.jbj1-4/+7
CVS patchset: 6694 CVS date: 2003/03/16 22:36:52
2002-08-23- merge signature returns into rpmRC.jbj1-1/+1
- python: exceptions on NOKEY/NOTTRUSTED. CVS patchset: 5667 CVS date: 2002/08/23 21:01:59
2002-08-19- add --with-efence to configure, check install/upgrade with efence.jbj1-7/+77
- beecrypt: short hex string conversion overflows target buffer. - mark "successors only" packages in transaction. - reap scriptlets with SIGCHLD handler. - rename PSM_t to rpmpsm, add methods and refcounts to manage. - remove %%configure/%%makeinstall from arch-os/macros, default is OK. - don't export MALLOC_CHECK_ to scriptlets. - squeaky clean memory leak checking. - always malloc rpmfi structure, refcounts are correct in rpmtsRun(). - skip redundant /sbin/ldconfig scripts on upgrade (if possible). CVS patchset: 5645 CVS date: 2002/08/19 22:27:44
2002-07-11- update for sv.po.jbj1-8/+0
CVS patchset: 5545 CVS date: 2002/07/11 21:47:51
2002-05-19- Grand Renaming of rpm data types.jbj1-4/+4
CVS patchset: 5439 CVS date: 2002/05/19 18:42:25
2002-04-13- use rpmdb-redhat to suggest dependency resolution(s).jbj1-2/+0
CVS patchset: 5401 CVS date: 2002/04/13 01:28:20
2002-04-11- rescusitate --rebuild.jbj1-1/+0
CVS patchset: 5389 CVS date: 2002/04/11 16:55:19
2002-04-08doxygen cleanup.jbj1-1/+1
CVS patchset: 5379 CVS date: 2002/04/08 18:56:01
2001-12-20- solaris: translate i86pc to i386 (#57182).jbj1-1/+1
- fix: %GNUconfigure breaks with single quotes (#57264). - fix: typo in find-requires. - tru64 compiler message cleanup. - add buildarch lines for hppa (#57728). CVS patchset: 5228 CVS date: 2001/12/20 16:28:46
2001-11-13- split file info tag sets into rpmfi.c.jbj1-23/+2
- create toy TFI_t iterators. CVS patchset: 5179 CVS date: 2001/11/13 19:04:33
2001-11-12- commit to using rpmDepSet and TFI_t, not header.jbj1-10/+0
- lclint rpmio fiddles. CVS patchset: 5177 CVS date: 2001/11/12 20:51:05
2001-11-11- unify rpmFNSet into TFI_t.jbj1-0/+2
- eliminate header reference in rpmtransAddPackage, use TFI_t data. CVS patchset: 5176 CVS date: 2001/11/11 22:51:00
2001-11-11Replace loadFi with fiNew, freeFi with fiFree.jbj1-34/+0
CVS patchset: 5175 CVS date: 2001/11/11 20:45:20
2001-11-11- factor per-transactionElement data out of TFI_t through pointer ref.jbj1-103/+18
CVS patchset: 5174 CVS date: 2001/11/11 16:17:57
2001-11-11- common structure elements for unification of TFI_t and rpmFNSet.jbj1-1/+4
CVS patchset: 5173 CVS date: 2001/11/11 12:47:08
2001-11-10- strip header tags for erased as well as installed transactionElements.jbj1-29/+18
CVS patchset: 5167 CVS date: 2001/11/10 01:39:50
2001-11-09- no-brainer refcounts for rpmProblemSet object.jbj1-1/+1
CVS patchset: 5163 CVS date: 2001/11/09 17:22:08
2001-11-08- linear search on added package provides is dumb.jbj1-1/+1
- discarding entire signature header when using --addsign is dumb. - typedef the fuile name/python object "key" throughout as fnpyKey. - start ripping rpmDependencyConflict out of the API. CVS patchset: 5160 CVS date: 2001/11/08 00:12:49
2001-11-05Start deconstructing availablePackage list.jbj1-2/+3
CVS patchset: 5156 CVS date: 2001/11/05 03:44:05
2001-10-30- transaction.c: cleanly uncouple availablePackage from TFI_t.jbj1-13/+46
CVS patchset: 5142 CVS date: 2001/10/30 18:00:21
2001-10-29- start hiding availablePackage data/methods in rpmal.c/rpmal.h.jbj1-0/+8
CVS patchset: 5140 CVS date: 2001/10/29 20:12:35
2001-10-29Remove DYING code.jbj1-17/+0
CVS patchset: 5139 CVS date: 2001/10/29 16:39:13