summaryrefslogtreecommitdiff
path: root/src/pacman/pacman.c
Commit message (Collapse)AuthorAge
* Added the --upgrades option for -Qu (--query --upgrades)Aaron Griffin2007-02-04
|
* Implemented a crappy version of -Qu (query upgrades). This simply outputs theAaron Griffin2007-02-04
| | | | | | | | packages to be upgraded in a -Su operation. Much of the code is duplicated from sync.c. TODO: move the implementation to upgrades.c, and reimplement the sync_sysupgrade function in terms of this: trans->packages = alpm_get_upgrades();
* * unified the progress bars (fill_progress function)Aaron Griffin2007-02-04
| | | | | | | | * fixed progress output (needs an fflush to move cursor properly) * broke display_targets function out, to display a list of syncpkgs in preparation for a -Qu option * added get_update_time function to deal with progress functions that shouldn't update too fast due to output redraw speeds
* 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.
* Dan McGee <dpmcgee@gmail.com>Aaron Griffin2007-01-26
| | | | | | * Lots of code cleanup, and type fixes * Make 'makeworld' a bit more in-line with the other stuff * Make -Si and -Qi operations appear the same
* Cleanup 'neednl' usage - make it staticAaron Griffin2007-01-24
|
* 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
* * remove static neednl - no accessor functions (yet)Aaron Griffin2007-01-18
| | | | * remove getcols call in main()
* Dan McGee <dpmcgee@gmail.com>Aaron Griffin2007-01-18
| | | | | | | | | | | | | | * Removed some unnecessary headers and library links * Made things static if possible * Cleaned up makefiles a bit * Fixed some old comments in the code * Fixed some errors the static code checker splint pointed out * Backwards arguments in a memset call in _alpm_db_read (could have been worse) * Other various small fixes Other: * Default to 80 columns when getcols cannot determine display width * Removal of ._install as a valid install file in packages
* Dan McGee <dpmcgee@gmail.com>Aaron Griffin2007-01-17
| | | | | | | | * fix for -Qii regression * package.c cleanup * some refactoring changes Moved split_pkgname as per Dan's suggestion
* * 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
* A few minor updates so --root works again.Aaron Griffin2006-12-08
|
* Removed an extra call to alpm_option_set_root() - it is set by alpm_init()Aaron Griffin2006-12-08
|
* Added dbpath validationAaron Griffin2006-12-05
|
* * 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)
* libalpm appends the trailing / to the config root, no need to do it hereAaron Griffin2006-11-20
|
* * repo-add script - to add entries to a db file directly from package data ↵Aaron Griffin2006-11-20
| | | | | | | | | | (no PKGBUILD) * libalpm api changes - move from a _getinfo(p, WHAT_WE_WANT) scheme to a typesafe _get_what_we_want(p) scheme [not 100% complete yet] * some const correctness changes * removal of PM_* types in alpm.h in favor of the pm*_t types used throughout libalpm
* * 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)
* Skip root check on -SpAaron Griffin2006-11-10
|
* Last mtrace/setenv change, I swearAaron Griffin2006-11-09
|
* Whoops - I fail at setenvAaron Griffin2006-11-09
|
* mcheck() seems to cause segfaults. Annoying. Switched back to useing ↵Aaron Griffin2006-11-09
| | | | mtrace() - if anything valgrind is superior to mcheck anyway
* * Improved mcheck outputAaron Griffin2006-11-08
| | | | | * Added minor libalpm const correctness * Mini-memory fixes
* Added mcheck support for memory debuggingAaron Griffin2006-11-07
|
* * Modified some error output and loggingAaron Griffin2006-11-03
| | | | | | * Changed the initial log mask (added PM_LOG_ERROR) * Fixed -Syu so it now works if any databases were downloaded (it was working like a -Su)
* * Fixed some alpm_get_option calls (long params were used for C99 compliance,Aaron Griffin2006-11-02
| | | | | | but were used in error) * Cleaned up some output newlines * Added "local database is up to date" when no packages are upgraded
* Numerous changes:Aaron Griffin2006-10-31
| | | | | | | * Added 'ILoveCandy' support to all progress bars * Changed download callback with regards to libfetch libalpm changes * libfetch error output on failed sync * Misc others I may have forgot to name (check the diff, heh)
* 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
* Added alpm function docs alongAaron Griffin2006-10-15
| | | | | pacman.c : Removed link to frugalware wiki sync.c : do not display Uncompressed size if 0 (archlinux has no USIZE)
* Merged frugalware changes. Added a few other minor things too, but there's alotAaron Griffin2006-10-15
| | | | to list. The diff should show you 8)
* Patch from FW: Better control over CTRL-C interruptions -- do not leave the ↵Judd Vinet2006-07-14
| | | | DB in an inconsistent state
* i18n stuffJudd Vinet2006-06-28
|
* first stage of i18n stuff from VMiklosJudd Vinet2006-05-15
|
* fixed dbpath initialization (found out by VMiklos <vmiklos@frugalware.org>)Aurelien Foret2006-03-21
|
* - removed pacman.hAurelien Foret2006-03-13
| | | | | - removed unuseful extern declarations - set pacman.c internal functions as static
* added a NOSCRIPLET flag to transactions (patch from VMiklos ↵Aurelien Foret2006-03-07
| | | | <vmiklos@frugalware.org>)
* - changed flags type from char to intAurelien Foret2006-03-04
| | | | - downloadonly implies FLAG_NOCONFLICTS
* disable progress bar if the output is redirected (patch from VMiklos ↵Aurelien Foret2006-03-01
| | | | <vmiklos@frugalware.org>)
* the library must provide default values for main optionsAurelien Foret2006-02-20
|
* sync with pacman 2.9.8Aurelien Foret2006-02-16
|
* used MALLOC macro when possibleAurelien Foret2006-02-14
|
* fixed a possible memory leakAurelien Foret2006-02-04
|
* added line feeds when needed (patch from VMiklos <vmiklos@frugalware.org>)Aurelien Foret2006-02-01
|
* added a --noprogressbar switch for scripts to useJudd Vinet2006-01-28
|
* added a FAKEROOT define allowing to use pacman in a fakeroot enivronment ↵Aurelien Foret2006-01-21
| | | | (for tests purpose)
* added the possibility to "-Syy" (can be used to force synctrees update, even ↵Aurelien Foret2006-01-17
| | | | if mtimes are ok)
* maked verbose group listing enabled by -Sgg instead of -SgvAurelien Foret2006-01-13
|
* made use of the new ALLDEPS transaction flag to handle "makepkg -s"Aurelien Foret2006-01-10
|
* sync_commit can now return conflicting files with a trans_prepare like data ↵Aurelien Foret2006-01-07
| | | | structure (patch from VMiklos <vmiklos@frugalware.org>)
* - removed uid checks (CYGWIN)Aurelien Foret2006-01-07
| | | | - fixed indentation in parseargs