summaryrefslogtreecommitdiff
path: root/lib/libalpm/add.c
Commit message (Collapse)AuthorAge
* Debug logging changes:Aaron Griffin2007-01-31
| | | | | | | | | | | | | | | | * The --debug params were goofy. New setup allows --debug without params, --debug=<level> where level 1=debug output, 2=debug and download output, 3=debug, download, and function tracing output. This seems more sane to me. * Removed PM_LOG_FLOW1 and PM_LOG_FLOW2. They were just confusing. When adding new functions, it is near impossible to determin if your output should be "flow1" or "flow2" without tracking all the way up the call chain. Rarely would one ever say "ok, lets just show "flow2" output. These have both been replaced with PM_LOG_DEBUG * Removed the need for the root parameter on alpm_initialize. it is now defaulted to PM_ROOT just like dbpath and cachedir. This allows alpm to be initialized BEFORE option parsing in the front end, saving us some duplicate variables in the frontend. * Cleaned up front end variables due to early alpm_initialize call.
* slight line spacing/indent updatesDan McGee2007-01-31
|
* K. Piche <kevin.piche@cgi.com>Aaron Griffin2007-01-30
| | | | * ALPM_LOG_FUNCTION macro and all the great work to add this macro everywhere
* K. Piche <kpiche@rogers.com>Aaron Griffin2007-01-30
| | | | | | | * gcc visiblity changes Also modified _alpm_versioncmp -> alpm_versioncmp (public function) as per K. Piche's suggestions
* * Remove -fno-strict-aliasing as it is now unnecessary to compile.Dan McGee2007-01-30
| | | | | | * Fix up add.c a bit better than it was in regards to FS #3492. * Optimized the sqrt call in dependency cycle checking to a single call. * Removal of an outdated comment.
* Discussed on IRC for a bit, this makes the following changes for clarity:Dan McGee2007-01-30
| | | | | | | | * 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.
* This mainly deals with code clarity- removing currently unneededAaron Griffin2007-01-24
| | | | | | | | | | 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>
* Preliminary checkin for alpm_list conversionAaron Griffin2007-01-19
| | | | | | | | | * 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
* Dan McGee <dpmcgee@gmail.com>Aaron Griffin2007-01-18
| | | | * fix "warning: dereferencing type-punned pointer will break strict-aliasing rules"
* * bug fix FS#6100 - fix --print-uris outputAaron Griffin2007-01-03
|
* * Bug fix FS#6058Aaron Griffin2007-01-03
| | | | properly remove entries from "Required By" instead of wiping it out entirely
* * Properly fix the NoUpgrade issues.Aaron Griffin2006-12-22
|
* * Unused variable 'path'Aaron Griffin2006-12-22
|
* *untested* potential fix for the NoUpgrade issues.Aaron Griffin2006-12-21
|
* * modeline fixes / reformattingAaron Griffin2006-12-21
| | | | | | | * formatting / indentation fixes * makepkg: Dan McGee <dpmcgee@gmail.com> - integrity check fix Jürgen Hötzel <juergen@hoetzel.info> - EUID usage and "x$foo" check revamp
* * Dan McGee's makepkg updates ↵Aaron Griffin2006-12-14
| | | | | | | | http://www.archlinux.org/pipermail/pacman-dev/2006-December/000792.html * configure fixes (CFLAGS) * no-strict-aliasing hacks until full C99 compliance * --with-config-file configure option
* * Cosmetic changes and typo fixesAaron Griffin2006-12-01
| | | | | * IgnorePkg and --ignore work again * Partial changes to support removal of conflicts for -U and -A (INCOMPLETE)
* * Fixed some error output for "-Sd" and "-Rsc" dealing with missing/ignoredAaron Griffin2006-11-24
| | | | | depends * Added valgrind suppression file
* * Numerous mini valgrind fixes.Aaron Griffin2006-11-14
| | | | | | | | | | * Addition of hacky architecture check in the _splitname function * Removal of libfetch from the archlinux proper - it has been renamed to libdownload and can be found at http://phraktured.net/libdownload * Merge of _some_ of the Frugalware makepkg change - this may still be incomplete * Removal of libftp from cvs proper * PKGBUILD manpage now says 'PKGBUILD' instead of FrugalBuild (he he)
* Numerous changes:Aaron Griffin2006-10-31
| | | | | | | | | | | | * 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.
* Minor changes:Aaron Griffin2006-10-21
| | | | | * Moved the pmhandle_t extern decl around * Fixed a doxygen complaint
* A handful of minor changes:Aaron Griffin2006-10-20
| | | | | | | | * 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
* Yet another "added three times" issue.Aaron Griffin2006-10-19
|
* Removed extra includesAaron Griffin2006-10-16
|
* Applied Frugalware patch from Christian Hamar alias krix <krics@linuxforum.hu>Aaron Griffin2006-10-15
| | | | | | for file-conflict progress bar Also did some CVS cleanup, removing some of the autogenerated files that shouldn't have been there
* Merged frugalware changes (too many to list). Also added some config fileAaron Griffin2006-10-15
| | | | | handling changes (support [sections] to carry over to included files - this helps with backwards compatibility with existing pacman config files)
* removed libtar support in favour of libarchiveJudd Vinet2006-09-28
|
* Patch from FW: Better control over CTRL-C interruptions -- do not leave the ↵Judd Vinet2006-07-14
| | | | DB in an inconsistent state
* first stage of i18n stuff from VMiklosJudd Vinet2006-05-15
|
* fixed reason loading if the pkg cache is loaded with DEPENDS onlyAurelien Foret2006-03-07
|
* added a NOSCRIPLET flag to transactions (patch from VMiklos ↵Aurelien Foret2006-03-07
| | | | <vmiklos@frugalware.org>)
* reworked the db object to prepare future integration with different backendsAurelien Foret2006-03-02
|
* dropped the MALLOC macroAurelien Foret2006-02-20
|
* prepend library function names with _alpm (helped with the patch from ↵Aurelien Foret2006-02-17
| | | | | | VMiklos <vmiklos@frugalware.org>) added log and event callbacks to sync_commit internal transactions
* code cleanupAurelien Foret2006-02-16
|
* added a add_faketarget functionAurelien Foret2006-02-12
| | | | reworked logs
* reworked debug messagesAurelien Foret2006-02-11
|
* added more logsAurelien Foret2006-02-11
|
* Search through package provides if no literal matches are found when ↵Judd Vinet2006-01-28
| | | | scanning for targets with -S
* improved log messages for add_commitAurelien Foret2006-01-27
|
* fixed a compilation warningAurelien Foret2006-01-26
|
* changed behaviour with original=X,current=Y,new=Z backup scenario -- install ↵Judd Vinet2006-01-22
| | | | new file as .pacnew and keep old one in place
* - code cleanupAurelien Foret2006-01-17
| | | | - log improvements
* more code cleanupAurelien Foret2006-01-16
|
* pulled out conflict checkings from checkdeps() in its own function: ↵Aurelien Foret2006-01-15
| | | | checkconflicts()
* fixed an awfull typoAurelien Foret2006-01-11
|
* added ALLDEPS transaction flag mainly to handle "makepkg -s"Aurelien Foret2006-01-10
|
* - merged pkg_new and pkg_dummy functionsAurelien Foret2006-01-09
| | | | - renamed _alpm_log_action to _alpm_logaction
* removed a restriction: the data parameter of XXX_prepare functions can be NULLAurelien Foret2006-01-07
|
* - sync: populates *data when a conflict can't be resolvedAurelien Foret2006-01-06
| | | | - add: code cleanup