summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2007-06-02Move parts of pacman_query into subfunctions (query_search, query_group, ↵Chantry Xavier2-193/+248
query_isfile) Clean up pacman_query so functionality is actually in functions, similar to how sync.c is organized. After doing this, it is easy to see similarity in the code between sync.c and query.c, so we should be able to consolidate some of this. Signed-off-by: Chantry Xavier <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-01Change -z|--showsize flag to ShowSize pacman.conf optionNathan Jones5-22/+13
Also cleaned up some duplicate printf lines related to the ShowSize option. Signed-off-by: Nathan Jones <nathanj@insightbb.com> Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-01Updated Spanish TranslationJuan Pablo González T1-317/+151
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-05-31Move DB and cache dirs away from there dependence on ROOTDIRDan McGee9-37/+43
This change allows us to use all autoconf specified paths, most notably $(localstatedir). It is quite a change and touches a lot of files, as all references to the DB and cache were done with the ROOTDIR as a prefix. * add --lock command-line option to pacman to specify the location of the lockfile (this can now be specified at configure time by setting the $localstatedir path). * Rip quite a few settings out of configure.ac as they are now picked by setting the paths during configure or make. * Fix bug with /tmp fallback for sync downloads not working correctly (related to root location, now the system tmp dir is used). * Simplified the parameters to some libalpm functions, and added get/set for the new lockfile option. * Renamed several of the DEFS to names without the PM_ prefix. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-05-31Set an error exit status on -Qi or -Si failureDan McGee2-18/+15
Regression from 2.9.8 where a failed -Qi lookup did not return an error on exit. The exit status is now incremented for each error encountered. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-05-30Modernize and update configure.acDan McGee1-5/+1
Using the autoscan tool, ensure we are doing the checks we should be doing in configure.ac. There is still more work to do, but this is a start at cleaning up the file a bit to make it much easier to change in the future. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-05-29Update POTFILES.in for new source file layout on pacman sideDan McGee1-5/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-05-25Add missing new line to 'pacman -T' output.Andrew Fyfe1-1/+1
'pacman -T foo bar' returns 'foobar' instead of: foo bar Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>o Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2007-05-20Add -Qee option for the original behavior of -QeChantry Xavier2-3/+4
-Qee now lists "orphans" the way pacman used to - that is, -Qe lists packages required by nothing that were installed as a dependency, but -Qee lists all packages not required by something else. Also, I snuck in a compile fix for my real_path cleanup earlier, heh Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2007-05-18Fix broken resolve_path functionAaron Griffin1-21/+7
Removed some unneeded path munging so that our relative paths resolve properly. This closes FS#7068 Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2007-05-14Remove unnecessary casts on malloc and elsewhereDan McGee3-11/+11
We had many unnecessary casts, most of them dealing with malloc and other memory allocations. The variable type should take care of it; no need to do it explicitly. In addition, I caught a const error while removing the casts. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-05-14Display size for packagesNathan Jones5-11/+47
This patch adds a -z|--showsize option to the -Q and -S commands. The option displays the size of individual packages. This is something that I have wanted for a while, and there is a feature request for it. Signed-off-by: Nathan Jones <nathanj@insightbb.com> Signed-off-by: Dan McGee <dan@archlinux.org>
2007-05-07Clean up query_fileownerDan McGee1-8/+8
* gotcha -> found * line wrap changes Signed-off-by: Dan McGee <dan@archlinux.org>
2007-04-29Remove 'removes' array from libalpmDan McGee2-6/+0
We don't use this functionality for now, so get rid of it and the functions associated with it. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-04-28Set HTTP_USER_AGENT envvar in pacmanDan McGee1-0/+20
Instead of using libdownload's default user agent string, make one of our own. Format: Pacman/3.0.1 (Linux i686 2.6.21-rc7-ARCH; en_US.utf8) libalpm/1.0.0 Signed-off-by: Dan McGee <dan@archlinux.org>
2007-04-28Add a cb_log call on segfaultsDan McGee1-0/+2
This should make it easier to see exactly where a segfault occurs; old method was prone to output flushing issues. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-04-27Clean up gettext on the libalpm sideDan McGee1-0/+4
Remove inclusion of libintl.h from all files, because we can do it once in util.c where the _() macro is defined. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-04-27Remove output.c and output.hDan McGee13-116/+39
One function was left in this set of files after the earlier cleansing, so I moved yesno to util.c. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-04-27Start of the newline fixes after switching over the outputDan McGee3-44/+39
* A few quick newline fixes, mostly related to sync operations. * Moved get_update_timediff to callback.c as it is not used outside of that file. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-04-27Set the correct type on the log callback functionDan McGee3-3/+4
Somehow missed this earlier when changing everything to types. unsigned short -> pmloglevel_t wherever necessary. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-04-26Add -pedantic flag to pacman (frontend) CFLAGSDan McGee3-3/+12
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>
2007-04-26Remove ERR calls from the codeDan McGee7-65/+88
All ERR() calls have been replaced with fprintf(stderr, ...). Still to be done- fix all the newline issues that are sure to pop up. What fun! Signed-off-by: Dan McGee <dan@archlinux.org>
2007-04-26Remove ERR, WARN, and pm_fprintf macros/functionsDan McGee2-71/+1
Rip out this stuff from output.c and output.h for the next step of ripping all ERR output from the pacman front end. This commit will NOT compile. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-04-26Remove MSG output macro (#define and in code)Dan McGee10-183/+158
This is the first step of converting output to standard functions such as printf, and eventually allowing compiliation with the -pedantic flag as is done on the libalpm side. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-04-26Move log.c/h -> output.c/h to properly reflect what is containedDan McGee12-24/+24
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-04-26Pacman side code consolidation- unify callback functions to one fileDan McGee13-359/+277
Some more major code reorginization here. The download progress callback function has been renamed and moved to callback.c, which is the former trans.c with the download and log callbacks added. In addition, this allows util.c to be cleaned up as fill_progress can now be static in callback.c. We've also cut two more source files out. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-04-26More pacman side cleanupDan McGee9-86/+41
* Cleaned up more of the header #includes, and got rid of a lot of stuff that was due to trying to make it compile on BSD/Darwin/CYGWIN. We can add it later but lets keep it simple for now and do it in seperate files if possible later. * Removed a lot of #define MACROS. Some were not even used, and others were only used a few times. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-04-26Allow sync search to work without argumentsDan McGee2-29/+38
Enable an -Ss operation to work without a target list. This allows all package information to be printed (as opposed to individual -Sl operations on repositories). Signed-off-by: Dan McGee <dan@archlinux.org>
2007-04-25add.c and remove.c cleanupDan McGee2-40/+72
Unification and cleanup of the add.c and remove.c code. It looks remarkably similar, so this may be a candidate for functionalization at a later time. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-04-25Remove more unnecessary stuffDan McGee14-21/+7
* Remove libintl.h from most files, as we only need to include it once in util.h where _() is defined. * Remove other unnecessary header inclusions. * Remove a macro that was only used once and replaced it with actual code. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-04-25Remove unnecessary includes of downloadprog.hDan McGee3-3/+0
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-04-25Remove single-function upgrade.cDan McGee4-48/+10
Move pacman_upgrade into add.c, at least for now. It really doesn't need its own file. For the long term, we may want to move this whole file back to upgrade.c if we deprecate the add operation. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-04-25Merge single-function header files on pacman sideDan McGee15-182/+37
Having a seperate header file for add, remove, query, etc. seemed overkill. Merge them all into a common pacman.h and fix the necessary #includes. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-04-25Update the pot language filesDan McGee1-169/+97
It looks like it is easier if these get updated too, so lets do it for now. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-04-25Update all translation po filesDan McGee8-1421/+1328
In order to get more reliable message statistics, I updated all of the po files by first doing a make *.pot-update followed by a make. I am holding off on committing the pot files as this causes issues with make constantly wanting to rebuild them. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-04-25Updated French TranslationNam1-432/+467
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-04-23Updating German TranslationPierre Schmitz1-18/+16
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-04-23Added Spanish translationJuan Pablo González T2-2/+1118
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-04-17Update German translationMatthias Gorissen1-38/+36
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-04-17Add Polish language translationMateusz Jędrasik2-0/+1078
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-04-17Forward port 3.0.2 branch fixesDan McGee1-1/+1
Fix #6905- makepkg dependency checking error Fix #6915- add SUU mirror to mirrorlist.in Signed-off-by: Dan McGee <dan@archlinux.org>
2007-04-14Add void to functions with empty parameter listDan McGee2-3/+3
Adding void [eg foo(void) instead of foo()] makes the code more compliant with ANSI C. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-04-05Add replaces output to -Qi operationDan McGee1-0/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-04-02Remove some debug print statements that were left in on accidentDan McGee1-2/+0
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-04-01Updated Italian TranslationGiovanni Scafora1-8/+6
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-04-01Clean up pacman.c, add localize functionDan McGee1-25/+48
* Add a localize function to do what was done before in main wrt i18n initialization. * Added Doxygen comments to all functions in pacman.c. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-03-30Make all paths and file locations configurableDan McGee1-1/+1
Several important paths, file locations, and extensions were #define-d in the source code instead of being configurable. This moves all of these to the configure script where they can be picked upon running ./configure. We may later want to make some of these even more visible and move them to pacman.conf. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-03-30Updated Hungarian Translation.Nagy Gabor1-7/+7
Signed-off-by: Nagy Gabor <ngaba@petra.hos.u-szeged.hu> Signed-off-by: Dan McGee <dan@archlinux.org>
2007-03-30Russian translation update.Владимир Байраковский1-29/+29
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-03-28Continue fixing usage instructions.Dan McGee1-4/+6
* Unify the main usage instructions to look a bit more like the rest with a usage and options line. * Fix some of the spacing from the de-gettexting done yesterday. Signed-off-by: Dan McGee <dan@archlinux.org>