summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Update translations from transifexDan McGee2011-08-08
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* doc/PKGBUILD: fix pkgver for -git packagesFlorian Pritz2011-08-08
| | | | | Signed-off-by: Florian Pritz <bluewind@xinu.at> Signed-off-by: Dan McGee <dan@archlinux.org>
* Fix group selection entry for large inputsDan McGee2011-07-25
| | | | | | | | | | | | Hardcoding anything always ends up burning you, and the arbitrary length of 64 here did just that. Add the ability to reallocate the readline buffer for longer inputs if necessary, and add other error checking as approprate. This also plugs one small memory leak of the group processing code selection array. Addresses FS#24253. Signed-off-by: Dan McGee <dan@archlinux.org>
* libalpm: Set ret correctly in download_internal()Lukas Fleischer2011-07-25
| | | | | | | | | Immediately jump to the cleanup code after setting the return code to -1 in case rename() fails. Otherwise, it will be reset to 0 right after we leave the if branch. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by: Dan McGee <dan@archlinux.org>
* makepkg: fix issue with filenames with spaces and noextractAllan McRae2011-07-18
| | | | | | | | | | | Specifying a filename with spaces in a PKGBUILDs noextract array fails due to a lack of quoting. Fixes FS#25100. Reported-by: Thomas Weißschuh <thomas_weissschuh@lavabit.com> Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
* Ensure a file can be replaced by a directoryDan McGee2011-06-27
| | | | | | | | | | | | This addresses FS#24904. In a normal upgrade case, this replacement seems to work just fine. However, when doing a sync "replace" type upgrade, we weren't properly handling this edge case due to path comparison not ignoring trailing slashes. Fix this by pruning any trailing slashes past a certain point of file conflict resolution where we no longer need them, which allows us to safely detect cases such as now tested in the new pactest. Signed-off-by: Dan McGee <dan@archlinux.org>
* File conflict code cleanupsDan McGee2011-06-27
| | | | | | | | While researching the root cause of FS#24904, I couldn't help but clean up some of the cruft in here. A few whitespace/line-wrapping issues, but also fix shadowed variables and add some const where applicable. Signed-off-by: Dan McGee <dan@archlinux.org>
* list_display: fix incorrect assignmentDan McGee2011-06-15
| | | | | | | Commit 895a88886525d erroneously left this around. Noticed-by: Jakob Gruber <jakob.gruber@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
* Fix man page generation for out of tree buildAllan McRae2011-06-15
| | | | | | | | Fix failure at man page generation when building outside the source tree. There may still be issues with other documentation types... Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
* Added check option to BUILDENV array in makepkg.conf man pageEric Bélanger2011-06-13
| | | | | Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
* Fix list_display on non-ttys and other output fixesDan McGee2011-06-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | commit c1f742d7750a14 broke what was one of the tenants of out output- if piping pacman output somewhere else, we shouldn't ever try to line-wrap and indent print our output. This makes it easier for tools to use output from pacman -Ss, -Qs, -Qi, etc. list_display() unfortunately was given a default value of 80 rather than 0, so fix this. Next, make some additional changes that ensure we don't insert an unnecessary blank line if for some crazy reason the indent level (such as on -Qi output) is greater than the number of columns. Accomplish this by printing the first item unconditionally as we do in list_display_linebreak(). Finally, teach indentprint to not wrap if the number of columns is less than the indent level, this prevents some forms of ridiculous output such as the following: Install Date : Wed 08 Jun 2011 04:39:19 AM CDT Signed-off-by: Dan McGee <dan@archlinux.org>
* Add late-breaking 3.5.3 NEWSDan McGee2011-06-07
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* Transifex updatesDan McGee2011-06-07
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* Remove incorrect output when downloading onlyAllan McRae2011-06-07
| | | | | | | | | | | | | When only downloading a package, pacman can produce some incorrect output. > pacman -Sddw nvidia-utils warning: nvidia-utils-270.41.19-1 is up to date -- reinstalling This line is now now silenced when using -Sw. Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
* makepkg: fix creation of source package with -pAllan McRae2011-06-07
| | | | | | | | | When creating a source package using an non-local buildscript via the -p option, the inclusion of changelog and install files would fail. Fixes FS#24567. Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
* 3.5.3 release preparationDan McGee2011-06-02
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* repo-add: anchor exclusion pattern when generating filelistDan McGee2011-06-02
| | | | | | | | | Fixes FS#24534. Dotfiles, such as /etc/skel/.bash_profile, were not being included in generated files entries. bsdtar --exclude option supports anchors on the pattern, so using "^.*" instead of ".*" solves our problem and still excludes all root-level dotfiles (e.g. .PKGINFO). Signed-off-by: Dan McGee <dan@archlinux.org>
* Ensure list_display works on outputs of unknown widthDan McGee2011-06-01
| | | | | | | | | | | | If getcols() returns 0, we were getting stuck before in a loop of no return. Teach getcols() to take a default value to return if the width is unknown, and use this everywhere as appropriate. Also make a few other cleanups while diagnosing this issue, such as const-ifying some variables. Noticed-by: Dave Reisner <d@falconindy.com> Signed-off-by: Dan McGee <dan@archlinux.org>
* doc: fix attribute substitution in monospaced textDan McGee2011-06-01
| | | | | | | | When I switched all paths to use `` formatting, I didn't realize substitution didn't work in these quote marks. Use ++ instead to ensure attributes are substituted where appropriate. Signed-off-by: Dan McGee <dan@archlinux.org>
* doc: update Makefile for new asciidoc resource locationDan McGee2011-06-01
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* doc: add a few more escapes and fix usage of {}Dan McGee2011-06-01
| | | | | | | | These addditional attributes come from the git asciidoc.conf file. Also, fix a place where we used {treename} without escaping the braces, causing the generated manpage to be missing text. Signed-off-by: Dan McGee <dan@archlinux.org>
* alpm_list: fix typo in doxygen commentPang Yan Han2011-05-24
| | | | | Signed-off-by: Pang Yan Han <pangyanhan@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
* Bail early if we don't have a valid lockfile pathDan McGee2011-05-19
| | | | | | | | | | | | | | This addresses FS#24292. If one does the bad thing of not checking pm_errno after calling set_dbpath(), you may not realize the initialization process went wrong and calling trans_init() resulted in a segfault. If we don't have a lockfile path, bail out and have trans_init() fail. Also remove a ALPM_LOG_FUNC call that was causing pm_errno to return "no handle"; this was due to a log call in the handle setup (whereby the log attempts to use a callback attached to the handle). Signed-off-by: Dan McGee <dan@archlinux.org>
* Coding style cleanups; add a null checkDan McGee2011-05-19
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* Ensure --print doesn't enable --noconfirm when not expectedDan McGee2011-05-16
| | | | | | | | This is at best a hack around the way we currently do our --print magic, but at least prevents someone from shooting themselves in the foot as indicated in FS#24287. Signed-off-by: Dan McGee <dan@archlinux.org>
* Fix segfault when uninstalling broken backed-up symlinkDan McGee2011-05-16
| | | | | | | | | Issue FS#24230. If a symlink is broken and included in the removal process of a package, we blew up and segfaulted due to alpm_compute_md5sum() returning NULL and then performing a strcmp() operation. Signed-off-by: Dan McGee <dan@archlinux.org>
* Add test for FS#24230, dead backup symlink removalDan McGee2011-05-16
| | | | | | This currently causes a segfault, which is bad news. Signed-off-by: Dan McGee <dan@archlinux.org>
* pactest: treat symlinks with more respectDan McGee2011-05-16
| | | | | | | | Don't call os.stat() when we should be using os.lstat(); this allows us to actually test dead symlinks that don't have a corresponding file. Add a new LINK_EXIST rule that complements FILE_EXIST for a similar purpose. Signed-off-by: Dan McGee <dan@archlinux.org>
* Transifex updatesDan McGee2011-05-16
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* trans.c: create transaction prior to checking DB versionDave Reisner2011-05-16
| | | | | | | | | | | The addition of the DB version check introduces a lag time between the lockfile creation and the transaction initialization. In cases where the local DB is large enough and/or the user's disk is slow enough, this time is significant enough that its possible for a user to send a SIGINT and leave behind a db.lck file. Signed-off-by: Dave Reisner <d@falconindy.com> Signed-off-by: Dan McGee <dan@archlinux.org>
* Ensure populate error return codes are consistentDan McGee2011-05-05
| | | | | | | It must be -1 to differentiate it from a number of packages loaded count. Signed-off-by: Dan McGee <dan@archlinux.org>
* makepkg: quote variable that may contain spacesAllan McRae2011-05-02
| | | | | | | | Prevents failures when $PKGDEST contains spaces (FS#24002) Patch-by: Sebastien Duthil Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
* Update PKGBUILD exampleAllan McRae2011-05-02
| | | | | | | | Add quotes around $srcdir/$pkgdir (FS#23960) and use a package() function. Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
* Transifex updatesDan McGee2011-04-29
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* pacman(8): grammar correction for relative clausesMatt Mooney2011-04-29
| | | | | | | | | | Change "which" to "that" when used in a restrictive clause. Replace usage of the relative prounoun "those" with a common noun for added clarity. Signed-off-by: Matt Mooney <mfm@muteddisk.com> Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
* pacman(8): change "options" to "operation" when referring to -DMatt Mooney2011-04-29
| | | | | | | -D is an operation not an option. Signed-off-by: Matt Mooney <mfm@muteddisk.com> Signed-off-by: Allan McRae <allan@archlinux.org>
* Small translation update from TransifexDan McGee2011-04-22
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* doc/pacman: split -Su description in 3 paragraphsXavier Chantry2011-04-20
| | | | | | | One paragraph for -Suu and one for -Su foo. Fixes FS#23451. Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
* Final updates for 3.5.2 releaseDan McGee2011-04-18
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* 3.5.2 translation updates from TransifexDan McGee2011-04-18
| | | | | | And also a POT version and package version update. Signed-off-by: Dan McGee <dan@archlinux.org>
* pacman/query: correctly handle root files with -QoXavier Chantry2011-04-15
| | | | | | | | spotted by clang-analyzer (strcmp with NULL rpath is bad) Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
* makepkg.sh.in: fix a GNU-ism in su invocationRémy Oudompheng2011-04-13
| | | | | | | | | | | | GNU su supports the -c option to specify a command to execute. However, other flavours of su may have a different interpretation of the '-c' flag (e.g. FreeBSD and OpenBSD). The behaviour is correct when '-c' follows an explicit username. Signed-off-by: Rémy Oudompheng <remy@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
* alpm.h: fix typos in documentationRémy Oudompheng2011-04-13
| | | | Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
* Remove Korean language translation filesDan McGee2011-04-12
| | | | | | | There is no actual translation done here yet, just a dormant Transifex language with nothing checked in. Signed-off-by: Dan McGee <dan@archlinux.org>
* bacman: fix the fact that the depends file no longer existsDan McGee2011-04-09
| | | | | | Addresses FS#23641. Signed-off-by: Dan McGee <dan@archlinux.org>
* alpm.h: document transaction flagsRémy Oudompheng2011-04-09
| | | | Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
* More documentation for option getters/setters.Rémy Oudompheng2011-04-09
|
* alpm.h: more documentation for pkgreason, depend and errno.Rémy Oudompheng2011-04-09
|
* Move documentation for public package function to alpm.hRémy Oudompheng2011-04-09
|
* alpm.h: organize doxygen documentation in groupsRémy Oudompheng2011-04-09
|