summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAge
* Allow $repo expansion in 'Server' config linesAaron Griffin2007-05-18
| | | | | | | | | | | | | Small change (addition of a 'strreplace' function) which replaces any $repo tokens found in a server line with the name of the repo or section being processed. While this is more simplistic than suggestions on flyspray, it works and I think it is cleaner. Merits can be discussed further. Ref: FS#6389 Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
* Fix extraneous "ignoring upgrade" output on Ignore'd packagesChantry Xavier2007-05-18
| | | | | | | | Reorder package version checking so there is no output when a package is listed in IgnorePkg. Closes FS#7111 Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
* Continue scanning when an invalid DB entry is foundAaron Griffin2007-05-18
| | | | | | | | Fix for FS#7133 - when DB scanning finds an invalid named entry, scanning is currently aborted. Instead we will simply skip it and find the next valid package. Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
* Remove trailing slashes from Server URLsAaron Griffin2007-05-18
| | | | | | | Simple clean up for the rest of the code, which also prevents a little libdownload bug relating to '//' appearing in URLs. Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
* Fix libarchive permission extractionAaron Griffin2007-05-18
| | | | | | | | Hackish fix to ensure libarchive extracts files and dirs with the right permissions. For some reason extracting /tmp on install wasn't handled properly by librachive, so an explicit chmod will fix this. Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
* Use alpm_depcmp in _alpm_pkg_update_requiredbyNagy Gabor2007-05-14
| | | | | | | The old function did too much on its own; let alpm_depcmp do the hard work. This will allow for future versioned provisions if necessary. Signed-off-by: Dan McGee <dan@archlinux.org>
* Remove unnecessary casts on malloc and elsewhereDan McGee2007-05-14
| | | | | | | | | 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>
* Fix IgnorePkg handling with replacement packagesAaron Griffin2007-05-09
| | | | | | | | Allow IgnorePkg (or --ignore) to work for _either_ side of a replacement. For example, if 'foo' is set to replace 'bar', ignoring either package will skip this replacement. Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
* libalpm util.c and util.h cleanupDan McGee2007-04-29
| | | | | | | | | | * Remove some unnecessary conditional compiling in util.h- move the functions tha required it to trans.c (along with a bunch of new header includes). * Clean up util.h a bit- remove some header includes, remove universal libarchive include and only put it in the files that need it. Signed-off-by: Dan McGee <dan@archlinux.org>
* Remove STRNCPY macro from libalpmDan McGee2007-04-29
| | | | | | | Replaced calls to the STRNCPY macro with the actual strncpy function, and pacman passes all pactests. Signed-off-by: Dan McGee <dan@archlinux.org>
* Remove 'removes' array from libalpmDan McGee2007-04-28
| | | | | | | 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>
* Remove FREELISTPTR macroDan McGee2007-04-28
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* Remove FREEPKG macro and correctly type _alpm_pkg_freeDan McGee2007-04-28
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* Remove FREEHANDLE macro and correctly type _alpm_handle_freeDan McGee2007-04-28
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* Remove FREESERVER macro and correctly type _alpm_server_freeDan McGee2007-04-27
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* Remove FREEGRP macro and correctly type _alpm_grp_freeDan McGee2007-04-27
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* Remove FREESYNC macro and correctly type _alpm_sync_freeDan McGee2007-04-27
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* Remove FREETRANS macro and correctly type _alpm_trans_freeDan McGee2007-04-27
| | | | | | Remove an unnecessary macro, and get rid of the void pointer. Signed-off-by: Dan McGee <dan@archlinux.org>
* Clean up gettext on the libalpm sideDan McGee2007-04-26
| | | | | | | 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>
* 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>
* Update Doxyfile for v1.5.2Dan McGee2007-04-25
| | | | | | Ran a doxygen -s -u as recommended on the Doxyfile. Signed-off-by: Dan McGee <dan@archlinux.org>
* add.c and remove.c cleanupDan McGee2007-04-25
| | | | | | | 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>
* Update the pot language filesDan McGee2007-04-25
| | | | | | | 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>
* Update all translation po filesDan McGee2007-04-25
| | | | | | | | | 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>
* Updated French TranslationNam2007-04-25
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* Updating German TranslationPierre Schmitz2007-04-23
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* Using wrong variable for depend lookup in sortbydepsNagy Gabor2007-04-22
| | | | Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
* Let IgnorePkg superceed the FORCE package flagChantry Xavier2007-04-22
| | | | Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
* Added Spanish translationJuan Pablo González T2007-04-22
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* Update German translationMatthias Gorissen2007-04-16
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* Add Polish language translationMateusz Jędrasik2007-04-16
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* ldconfig changes from CVSAaron Griffin2007-04-16
| | | | | | | forward-porting some 3.0.2 changes * Nagy's ldconfig fix * 3 new pactests to check if ldconfig runs Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
* Really run scriptlet on pre_remove and post_removeRoman Kyrylych2007-04-05
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* Backport changes from 3.0.1Aaron Griffin2007-04-04
| | | | | | | | | | * Align makepkg -g checksums (Tom Killian <tom@archlinux.org>) * Use additional case-sensitive string compare to defeat locale issues (tr_TR) * Added Russian mirror * Fix a -R failure when trying to remove the same target twice * Bump configure.ac version to 3.0.1 Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
* Move the 100% progress bar call before remove scriptlet for output reasonsVMiklos2007-04-01
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* Make all paths and file locations configurableDan McGee2007-03-30
| | | | | | | | | | 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>
* Report an error on setmntent failureAaron Griffin2007-03-29
| | | | Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
* Fix a 0 and '/0' switchDan McGee2007-03-29
| | | | | | It looks like someone accidentally put a 0 instead of '/0', this fixes it. Signed-off-by: Dan McGee <dan@archlinux.org>
* Doxygen fixups for libalpmDan McGee2007-03-29
| | | | | | | | | | We haven't done a whole lot with Doxygen so far, so this updates some of the things that have changed a lot- namely, the now public exposure of alpm_list. All functions in this file have now been Doxygen commented, and a few other things in alpm.c were fixed as well. In addition, the Doxygen config file was updated. Signed-off-by: Dan McGee <dan@archlinux.org>
* Fix --ignore behavior on sysupgradeDan McGee2007-03-28
| | | | | | | | * --ignore was being ignored (haha) on sysupgrade when a package was listed as being a force upgrade. This adds a prompt to the user in this case asking what to do. 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>
* * Added a mirror list for [testing] (it appears most mirrors mirror testing)Aaron Griffin2007-03-24
| | | | | * Commented ftp.archlinux.org in the official mirror list * ran a make dist, which updated some translation files
* * Updated German translationDan McGee2007-03-23
| | | | Pierre Schmitz <pierre@archlinux.de>
* Fixed alpm_log call- too many parameters passed. (bardo on #archlinux-pacman)Dan McGee2007-03-22
|
* Clarify some English messages as suggested by Nagy Gabor. I even did the hardDan McGee2007-03-22
| | | | | | work of fixing these in the translation files, and I removed a few fuzzys while doing so. If any more patches for translations come, try to do it against these files.
* Lots of translation updates before we release.Dan McGee2007-03-22
| | | | | | | | | | | | | | | * Ran msgmerge on all po files from new pot files, but did not check in the updated pot files as that just causes problems. * Updated Italian translation Giovanni Scafora <linuxmania@gmail.com> * Updated Russian translation, added libalpm partial translation Владимир Байраковский <4rayven@gmail.com> * Updated Hungarian translation Nagy Gabor <ngaba@petra.hos.u-szeged.hu> * Updated French translation solsTiCe d'Hiver <solstice.dhiver@laposte.net> Thanks again guys!
* I was mistaken, newpkg->data IS useful here, as the scriptlet isn't in the FS atAaron Griffin2007-03-22
| | | | this point
* * Correct install scriptlet usage (reuse of handle->root when not needed)Aaron Griffin2007-03-22
| | | | | * Skip running scriptlet when chroot fails - to prevent issues in the host filesystem
* * Fix conflict checking to ignore symlinks that were in previous version ofDan McGee2007-03-22
| | | | package. Regression from 2.9.8.
* * dont use XferCommand if retrieving local files, fixes wget error:Jürgen Hötzel2007-03-21
| | | | file:////....: Unsupported scheme.