summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Mark sync_pkg and sync_target as static functionsDan McGee2010-07-27
| | | | | | | We no longer use these anywhere outside of sync.c, so do the rename and add static to their definition to meet our coding standards. Signed-off-by: Dan McGee <dan@archlinux.org>
* Maintain a list of seen packages when installing a groupDan McGee2010-07-27
| | | | | | | | | | | | | | As reported in FS#20221, we don't always do the right thing when installing a group and using the --needed option. This was due to the code pulling packages based on what was already in the transaction's add list, but completely ignoring the fact that we may have already seen and skipped this same package in an earlier repository. Add a list to the private _alpm_sync_pkg() function that allows us to have this extra information so we don't mistakenly downgrade a package when using --needed. Signed-off-by: Dan McGee <dan@archlinux.org>
* Add two pactests for group and --needed interactionDan McGee2010-07-27
| | | | | | | | The first step for resolving FS#20221. sync023 is the case from the bug report; sync022 is already working fine but we have no tests at all that test the --needed option in any form. Signed-off-by: Dan McGee <dan@archlinux.org>
* Always treat PKGLIST as an array.Dave Reisner2010-07-27
| | | | | | | | | Fixes repackaging issues when multiple package names are passed to the --pkg option. Signed-off-by: Dave Reisner <d@falconindy.com> Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
* docs: Add a 'website' targetDan McGee2010-07-02
| | | | | | | | This will allow me to be not quite as lazy in getting website changes out to the Arch Linux server by making it trivial to get everything packaged up and working correctly. Signed-off-by: Dan McGee <dan@archlinux.org>
* Fix some incorrect asciidoc syntaxDan McGee2010-07-02
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* makepkg: fix sudo/su calling of pacmanAllan McRae2010-07-01
| | | | | | | | | | | | | | | | | | | This fixes two issues: 1) using "sudo -l" results in excess password asking under certian configurations. Revert to the pre 3.4 behaviour of always using sudo if it is installed. 2) Properly escape the command so that that versioned dependencies, such as "foo>4", do not get treated as output redirection when using su. This also unifies the generation of the pacman line and its privilege escalation. Based on patches supplied by Andres P <aepd87@gmail.com> with minor adjustments for suitability for the maint branch. Original-work-by: Andres P <aepd87@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
* Update Chinese translation to fix gettext positional params甘露(Gan Lu)2010-07-01
| | | | | | | Because the shell gettext doesn't allow for positional gettext substitution, be more careful about where we use it. Signed-off-by: Dan McGee <dan@archlinux.org>
* makepkg: try standard paths for coreutils duAllan McRae2010-06-30
| | | | | | | | | Attempt to find "du" from coreutils in the standard paths and if not revert to the version in the users PATH. Using the full path prevents issues such as FS#19932, where a different and incompatible version of du is put earlier in the users path. Signed-off-by: Allan McRae <allan@archlinux.org>
* makepkg: remove bash4-only parameter expansion in check_sanityAndres P2010-06-30
| | | | | Signed-off-by: Andres P <aepd87@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
* makepkg: Only check regular files in $srcdir checkThomas Bächler2010-06-30
| | | | | | | | | | | The 'grep -R' in the $srcdir check would not only grep regular files, but also devices, symlinks (that might potentially point outside of $pkgdir), pipes and so on. Use find to ensure only regular files are examined. This should fix https://bugs.archlinux.org/task/19975 Signed-off-by: Allan McRae <allan@archlinux.org>
* repo-add: try symlink, then hardlink, then copy for DB fileDan McGee2010-06-24
| | | | | | | | | We were seeing some issues when trying to create our new database alias using symlinks on certain filesystems (see FS#19907). Have a fallback method in place where we first try a symlink, then a hard link, then just copy the database if all else fails. Signed-off-by: Dan McGee <dan@archlinux.org>
* bash_completion: fix bash 3.2 incompatibilityAndres P2010-06-23
| | | | | | | | | | | | | | To avoid errors with bash 3.2, compopt will be skipped if it's not a shell builtin. compopt is needed to not append slashes to package names that coincide with directories in PWD. This is currently not possible to fix in bash versions that do not support compopt, so these users will have to bear that regression. Signed-off-by: Andres P <aepd87@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
* makepkg: prevent error trap activation in bash-3.2Allan McRae2010-06-23
| | | | | | | | | Running "pacman -T foo" is expected to return a non-zero value when "foo" is not installed. This sets of the error trap in bash-3.2 but not bash 4.x. Work around this by disabling the error trap around this pacman call as we are manually checking the return value anyway. Signed-off-by: Allan McRae <allan@archlinux.org>
* rankmirrors: pipe errors to stderrAndres P2010-06-23
| | | | | | | If this is to be scripted with AIF or another tool, it needs to respect stderr. Signed-off-by: Andres P <aepd87@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
* rankmirrors: fix bogus pacman configuration parsingAndres P2010-06-23
| | | | | | | | Valid pacman configuration files do not have to start with a hash for that line to be a comment, neither do directives need to be in column 0. Signed-off-by: Andres P <aepd87@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
* rankmirrors: fix bogus variable assignmentAndres P2010-06-23
| | | | | | | | | | $replacedurl was being built from an expansion of itself. But at the time it happened, it was empty. Fixes FS#19911 Signed-off-by: Andres P <aepd87@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
* makepkg: revert bash4-ismAllan McRae2010-06-20
| | | | | | | | | Commit 3d67d9b1 introduced multiple bash4 string manipulations. Revert those in order retain compatibility with bash-3.2 which is still widely used. Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
* Handle sync target + ignore properlyDan McGee2010-06-20
| | | | | | | | | | | Rather than say we can't find the target after saying "No, I guess I don't want to install this", we should make sure the ignored status gets passed all the way through. This fixes FS#19866. Pactest is also included that failed before due to the fact that we normally treat an unfound package as a reason to exit with a non-zero status. Signed-off-by: Dan McGee <dan@archlinux.org>
* Revert disabling of make in doc/ dir by defaultDan McGee2010-06-17
| | | | | | | | | | | | | | This is a partial revert of commit d44e5099. By making disabling docs the default, it presents all sorts of problems- namely anyone who builds from a tarball and isn't careful enough to include '--enable-doc' will get an install without any manpages at all. Remember that make includes both 'build' and 'install' steps. The warning introduced by the commit is kept, so we do not lose all its benefits, but I am not happy to see regressions introduced in packaging and installing of this piece of software. Signed-off-by: Dan McGee <dan@archlinux.org>
* makepkg: fallback to sane defaults for library strippingAllan McRae2010-06-16
| | | | | | | | | If the library stripping variables are not defined in makepkg.conf, libraries will be fully stripped and become broken. Fallback to a sane default stripping level. Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
* Fix distcheck invocation in doc/ directoryDan McGee2010-06-16
| | | | | | | | | | Commit 5fe41df8 broke `make distcheck` pretty badly for the doc directory. Looking at what this commit was trying to accomplish, it make sense to revert a lot of the build system changes and just simplify what we are showing in the man page anyway- an example, not exactly how it is configured on your system. Signed-off-by: Dan McGee <dan@archlinux.org>
* Add test/util directory as necessary to build filesDan McGee2010-06-16
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* Update website with 3.4.0 releaseDan McGee2010-06-16
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* Fix issue in Chinese translation甘露(Gan Lu)2010-06-16
| | | | | | Fixes FS#19777. Signed-off-by: Dan McGee <dan@archlinux.org>
* Add a .mailmap fileDan McGee2010-06-15
| | | | | | | | This helps out `git shortlog` by mapping our various mismatched authors and email addresses. The number of authors reported by shortlog goes from 131 to 98 after this commit. Signed-off-by: Dan McGee <dan@archlinux.org>
* Update Romanian translationIonuț Bîru2010-06-14
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* Revise Portuguese (Brazil) translationLeandro Inácio2010-06-14
| | | | | | | Fix the '\t' characters that got introduced by the last update of this translation that should not have been there. Signed-off-by: Dan McGee <dan@archlinux.org>
* Updating Catalan translationManuel Tortosa2010-06-14
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* Update Spanish translationJuan Pablo González T2010-06-14
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* Update Ukrainian translationRoman Kyrylych2010-06-14
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* Update Portuguese (Brazil) translationLeandro Inácio2010-06-11
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* translations: rename Norwegian translation from nb_NO to nbDan McGee2010-06-11
| | | | | | | | | | | This puts us more in line with other projects that don't attach the country code to the language code. $ du -sh /usr/share/locale/nb*/LC_MESSAGES 3.5M /usr/share/locale/nb/LC_MESSAGES 132K /usr/share/locale/nb_NO/LC_MESSAGES Signed-off-by: Dan McGee <dan@archlinux.org>
* translations: rename Swedish translation from sv_SE to svDan McGee2010-06-11
| | | | | | | | | | | This puts us more in line with other projects that don't attach the country code to the language code. $ du -sh /usr/share/locale/sv*/LC_MESSAGES 7.2M /usr/share/locale/sv/LC_MESSAGES 60K /usr/share/locale/sv_SE/LC_MESSAGES Signed-off-by: Dan McGee <dan@archlinux.org>
* Revise Greek translationChristos Nouskas2010-06-09
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* makepkg: use BUILDFILE rather than BUILDSCRIPTAllan McRae2010-06-09
| | | | | | | In check_sanity, BUILDFILE needs to be checked rather than BUILDSCRIPT. Signed-off-by: Allan McRae <allan@archlinux.org>
* makepkg: fix errors with multiple install or changelog filesAllan McRae2010-06-09
| | | | | | Another issue caused by fe1e3471. Signed-off-by: Allan McRae <allan@archlinux.org>
* Fix creation of source packagesAllan McRae2010-06-09
| | | | | | | | | | | | | Source packages were getting created with only links to local source files. Caused by commit 5cddcc90. Also, fix dangling symlinks to install and changelog files. Caused by commit fe1e3471. Thanks to Christopher Rogers <slaxemulator@gmail.com> for pointing out areas that were failing. Signed-off-by: Allan McRae <allan@archlinux.org>
* Update English (British) translationDan McGee2010-06-07
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* API changes between 3.3 and 3.4Nagy Gabor2010-06-07
| | | | | | | Updates for README file. Signed-off-by: Nagy Gabor <ngaba@bibl.u-szeged.hu> Signed-off-by: Dan McGee <dan@archlinux.org>
* Update German translationMatthias Gorissen2010-06-07
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* Update Russian translationSergey Tereschenko2010-06-07
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* Add note about XySSL/PolarSSL name changeDan McGee2010-06-07
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* Update Kazakh translationBaurzhan Muftakhidinov2010-06-07
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* Update French translationXavier Chantry2010-06-06
| | | | | | | | Thanks to CalimeroTeknik <calimeroteknik@free.fr> for providing many corrections ! Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
* Update Greek translationChristos Nouskas2010-06-06
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* Remove unnecessary gettext callDan McGee2010-06-05
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* Update Czech translationVojtěch Gondžala2010-06-05
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* Update Hungarian translationNagy Gabor2010-06-05
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* Update Italian translationGiovanni Scafora2010-06-05
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>