summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/trans.c
AgeCommit message (Collapse)AuthorFilesLines
2007-02-26* Enforce const char* params when using stringsAaron Griffin1-2/+2
* Unified some functions names "package" -> "pkg" for consistency * Removed the goofy 'faketarget' stuff used for dep testing * Renamed alpm_pkg_isin -> alpm_pkg_find * Renamed alpm_db_readpkg -> alpm_db_get_pkg
2007-02-21* Fixed inconsistency of args- _alpm_db_read, _alpm_db_write.Dan McGee1-2/+2
2007-02-20* Updated conflict checking one last time. You can finally have a file moveDan McGee1-2/+4
from one package to another seemlessly (knock on wood). This is implemented through the use of two skip lists in the trans struct- skip_add and skip_remove, which replace the former trans->skiplist. * Removed an unnecessary function parameter, added a necessary one. * If a package has no backup files, print '(none)' under the heading so it is more obvious. * Updated my TODO list.
2007-02-18Moved the update_depends function to trans.c, as it depends on a transactionAaron Griffin1-0/+93
object
2007-01-30K. Piche <kevin.piche@cgi.com>Aaron Griffin1-0/+14
* ALPM_LOG_FUNCTION macro and all the great work to add this macro everywhere
2007-01-30K. Piche <kpiche@rogers.com>Aaron Griffin1-2/+2
* gcc visiblity changes Also modified _alpm_versioncmp -> alpm_versioncmp (public function) as per K. Piche's suggestions
2007-01-30Discussed on IRC for a bit, this makes the following changes for clarity:Dan McGee1-1/+1
* alpm_list_is_in --> alpm_list_find * alpm_list_is_strin --> alpm_list_find_str * Flip parameters of both functions to be inline with rest of alpm_list. First commit, woohoo.
2007-01-24This mainly deals with code clarity- removing currently unneededAaron Griffin1-2/+4
optimizations in order to make the code much more readable and type-checkable. Every enum in the library now has it's own type that should be used instead of the generic 'unsigned char'. In addition, several #define statements dealing with constants were converted to enums. Signed-off-by: Dan McGee <dpmcgee@gmail.com>
2007-01-19Preliminary checkin for alpm_list conversionAaron Griffin1-8/+8
* renamed pmlist_t -> alpm_list_t * made alpm_list_t a public type (alpm_list.h header) * removed additional storage for registered DBs in pacman source * some code cleanup * removed duplicate (pm)list_display functions from pacman source * misc code cleanup
2006-11-22* Completed getinfo api changes (pmmissing_t, pmtrans_t, etc)Aaron Griffin1-0/+35
* Modified some dependancy checking * Changed "performing local database upgrade" message to be more clear * Change 'usize' to 'isize' in database files * Scriptlet output is now sent to pacman's log file * Limited some debugging output to be more clear
2006-10-31Numerous changes:Aaron Griffin1-1/+1
* Furthered the "lazy caching" to force the pkgcache to read nothing (INFRQ_NONE) by default. Anything requiring package data should now check the infolevel of each package and attempt to update it. This could be ironed out a bit more later (by using the front-end get_info function * Switched to libfetch. Drastic changes to the download code and the callback progress bar functions. Also fixed the return value of _alpm_downloadfiles_forreal. Downloading now supports http, ftp, https, and files urls, along with 'mtime's and numerous other fancy features from libfetch.
2006-10-21Minor changes:Aaron Griffin1-2/+0
* Moved the pmhandle_t extern decl around * Fixed a doxygen complaint
2006-10-20A handful of minor changes:Aaron Griffin1-3/+3
* Removed the PMList typedef, in favor of the same naming scheme other structs use 'pmlist_t' * Added a time stamp on debug output, to make it more informational * Moved alpm_db_register to _alpm_db_register, making the public function not take a callback parameter
2006-10-15Merged frugalware changes (too many to list). Also added some config fileAaron Griffin1-4/+12
handling changes (support [sections] to carry over to included files - this helps with backwards compatibility with existing pacman config files)
2006-07-14Patch from FW: Better control over CTRL-C interruptions -- do not leave the ↵Judd Vinet1-0/+2
DB in an inconsistent state
2006-07-14spelling fixJudd Vinet1-1/+1
2006-05-15first stage of i18n stuff from VMiklosJudd Vinet1-1/+2
2006-03-04- changed flags type from char to intAurelien Foret1-1/+1
- downloadonly implies FLAG_NOCONFLICTS
2006-03-01added ERROR logs in case of malloc failures (patch from VMiklos ↵Aurelien Foret1-0/+2
<vmiklos@frugalware.org>)
2006-02-22improved _alpm_list_free handlingAurelien Foret1-1/+3
2006-02-17prepend library function names with _alpm (helped with the patch from ↵Aurelien Foret1-26/+26
VMiklos <vmiklos@frugalware.org>) added log and event callbacks to sync_commit internal transactions
2006-01-10fixed a memory leak in the transaction cleanup codeAurelien Foret1-1/+2
2006-01-09- merged pkg_new and pkg_dummy functionsAurelien Foret1-4/+0
- renamed _alpm_log_action to _alpm_logaction
2006-01-07sync_commit can now return conflicting files with a trans_prepare like data ↵Aurelien Foret1-2/+2
structure (patch from VMiklos <vmiklos@frugalware.org>)
2006-01-02patch from VMiklos - use PACKAGE_VERSION instead of PACMAN_VERSIONJudd Vinet1-1/+1
2005-11-07added a FREESYNC macro to release pointers to pmsyncpkg_t structuresAurelien Foret1-2/+1
2005-10-10- more sanity checksAurelien Foret1-5/+3
- alpm_pkg_free can now return an error code
2005-10-09added conversation callback support for transactionsJudd Vinet1-1/+3
2005-10-07Merging in recent fixes/additions from 2.9.7Judd Vinet1-0/+2
2005-05-04event transaction callback rework to prepare the introduction of a ↵Aurelien Foret1-3/+3
conversation callback
2005-04-24added support for the package reason fieldAurelien Foret1-0/+1
2005-04-20bypass trans_prepare() if there is no targetAurelien Foret1-0/+5
2005-04-16- reworked transaction prototypesAurelien Foret1-10/+21
- added a trans_sysupgrade function
2005-04-06reverted back to trans->packages instead of install and remove queuesAurelien Foret1-15/+6
2005-04-06replaced transaction 'packages' field by 2 queues: one for packages to be ↵Aurelien Foret1-5/+18
installed and the other for the ones to be removed
2005-03-30started the work on "pacman_sync"Aurelien Foret1-2/+12
2005-03-16Renamed PM_RET_ERR to RET_ERR (no need for a PM_ prefix for internalAurelien Foret1-6/+6
defines).
2005-03-15Initial revisionJudd Vinet1-0/+187