summaryrefslogtreecommitdiff
path: root/src/util
Commit message (Collapse)AuthorAge
...
* Add testdb util for finding inconsistencies in the database.Chantry Xavier2007-09-11
| | | | | Signed-off-by: Chantry Xavier <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
* make alpm_strerror binding friendlyStefano Esposito2007-09-11
| | | | | | | | | | | | | | | | | I'm currently working on python bindings for alpm written in pyrex. While working i found that declaring alpm_strerror as char * alpm_strerror (void) instead of char * alpm_strerror (int err) and then using pm_errno in the implementation instead of err, could make it more bindings-friendly. Dan: cleaned up and added void to declaration. Instead of replacing existing function, add a new function called 'alpm_strerrorlast(void)'. Signed-off-by: Stefano Esposito <stefano.esposito87@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
* Make some small changes recommended by splintDan McGee2007-09-11
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* src/util: Clean up headers and a few fixesDan McGee2007-08-15
| | | | | | | Remove some unnecessary headers in the two utilities as well as fix a possible non-null termination issue in vercmp. Signed-off-by: Dan McGee <dan@archlinux.org>
* Remove unnecessary entries from .gitignore filesDan McGee2007-07-16
| | | | | | | .gitignore works recursively, so we don't need Makefile and Makefile.in in all of the subdirectory .gitignore files. Signed-off-by: Dan McGee <dan@archlinux.org>
* Remove logmask stuff from backend; switch logging callback to new pm_printfDan McGee2007-06-09
| | | | | | | | | | Remove the logmask functionality from the backend as it has been moved to the frontend, and change the logging callback function to use pm_printf. In addition, make much better use of va_list- use the args list instead of a arbitrarily chosen string to print to in the logging functions. Signed-off-by: Dan McGee <dan@archlinux.org>
* Autotool clean up.Andrew Fyfe2007-06-04
| | | | | | | | | * Add vim modeline to Makefile.am and configure.ac * Fix white space in Makefile.am and configure.ac * Add contrib/wget-xdelta.sh to EXTRA_DIST in Makefile.am Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
* Set the correct type on the log callback functionDan McGee2007-04-26
| | | | | | | Somehow missed this earlier when changing everything to types. unsigned short -> pmloglevel_t wherever necessary. Signed-off-by: Dan McGee <dan@archlinux.org>
* Add -pedantic flag to pacman (frontend) CFLAGSDan McGee2007-04-26
| | | | | | | Now that we got rid of the ERR and WARN macros, compilation with -pedantic turned on works with only minor changes. Signed-off-by: Dan McGee <dan@archlinux.org>
* Move .cvsignore -> .gitignoreDan McGee2007-03-27
| | | | | | | | * Move all .cvsignore files to .gitignore for switch in VCS. In addition, delete ones that were unnecessary because they only contained Makefile and Makefile.am. Signed-off-by: Dan McGee <dan@archlinux.org>
* * Removed ${CFLAGS} from Makefile.am(s) as it was causing all CFLAGS to beDan McGee2007-03-12
| | | | | | | | duplicated. * Updated the util Makefile.am to link with the proper libalpm.la. * Fixed bitmasking issues in be_files.c and db.h. * Rankmirrors updates from James Rosten (with some cleaning up of my own). KeyboardInterrupts are now handled gracefully.
* This commit looks much more monumental than it is. Almost all just #includeDan McGee2007-03-05
| | | | | | | | reordering and adding ones that were forgotten (noticed when trying to compile after reordering). * Updated the HACKING file to include information on #include usage. * print -> vprint in "making dir" function in pactest.
* * handle changes: callbacks should check handle first, as there's a fewAaron Griffin2007-03-04
| | | | | | | | | occasions where some alpm stuff could be used without initializing the library (vercmp is one). TODO make these functions (handle accessors) better by returning "library not initialized" instead of failing. * Removed NoUpgrade lines from pacman.conf - we need to test this! * Re-corrected the lib targets for src/util/* * make dist seems to have updated the po files
* * libtool fixes for building against the right libsAaron Griffin2007-03-04
|
* * A lot of Makefile.am updates to try to get 'make dist' and 'make distcheck'Dan McGee2007-02-22
| | | | to work as expected.
* TODO update and .cvsignore additionDan McGee2007-02-12
|
* Added 'testpkg' binary to test for validity of a package:Aaron Griffin2007-02-12
| | | | | testpkg <package file>, returns 0 on success, 1 on failure failure will also output error messages to stdout
* * Fix compile errors/warnings.Dan McGee2007-02-09
| | | | * Update .cvsignore files a bit.
* * I made "alpm_versioncmp" public a while back, without noticing this was ↵Aaron Griffin2007-02-09
| | | | | | already done (alpm_pkg_vercmp). I dropped this change, making versioncmp "private" again. (alpm_versioncmp -> _alpm_versioncmp, hidden symbol) * Make alpm_get_upgrades use the same version check that -Su and -S use.
* 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
* * Fix building outside $(srcdir).Jürgen Hötzel2007-01-29
| | | | | * Removed ./gen-mirrorlist.sh invocation from configure script: Mirror-files are generated by make, not configure.
* -std=c99 seems to undefine PATH_MAX in this case. I don't care enough to fix itAaron Griffin2006-11-23
| | | | at the moment, so this workaround works.
* * Whoops util MakefileAaron Griffin2006-11-22
| | | | * Slight modification to depcmp debug output
* * Completed getinfo api changes (pmmissing_t, pmtrans_t, etc)Aaron Griffin2006-11-22
| | | | | | | | * 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
* Whoops, actually remove convertdb this timeAaron Griffin2006-10-15
|
* Removed convertdbAaron Griffin2006-10-15
|
* include changes so that this compilesAaron Griffin2006-10-15
|
* added .cvsignore filesAurelien Foret2006-03-27
|
* improved _alpm_list_free handlingAurelien Foret2006-02-22
|
* 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
* copyright updateAurelien Foret2006-02-07
|
* code cleanup (mainly removed line spaces at the beginning of lines by ↵Aurelien Foret2006-01-07
| | | | tabulations)
* - started to rename list_XXX calls to _alpm_list_XXXAurelien Foret2006-01-05
| | | | - fixed 2 compilation warnings
* removed an uneeded call to strtrimAurelien Foret2005-12-31
|
* renamed rpmvercmp to versioncmp, added some fixes from isteve@bofh.czJudd Vinet2005-12-26
|
* removed the declaration of an unused variableAurelien Foret2005-11-07
|
* added first part of the autoconf stuff - patch from Christian Hamar ↵Judd Vinet2005-10-17
| | | | <krics@linuxforum.hu>
* Applied patch from Christian Hamar (krics@linuxforum.hu)Aurelien Foret2005-10-06
|
* Initial revisionJudd Vinet2005-03-15