summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Preliminary support for optdependsDan McGee2007-09-25
| | | | | | | | Add some alpm functions for getting optdepends, have makepkg include them in the PKGINFO file, and have a pacman -Qi operation display the raw string as stored by libalpm. Signed-off-by: Dan McGee <dan@archlinux.org>
* Allow a normal 'make' to compile without asciidoc installedDan McGee2007-09-23
| | | | | | | | If we don't have asciidoc installed or enabled, we should still have a successful make. However, we want to ensure 'make dist' fails without asciidoc. This commit should ensure this. Signed-off-by: Dan McGee <dan@archlinux.org>
* libalpm/add.c: fix backup array issueDan McGee2007-09-23
| | | | | | | | | | | | As seen with the recent upgrade of pacman and the removal of the pacman.d/current mirrorlist, files that were formerly in the backup array get deleted upon their removal, which could be dangerous. Instead, we should use the combined backup array of the old and new package. This fix should address this issue in a relatively straightforward way. In addition, old files should be moved to pacsave locations as expected. Signed-off-by: Dan McGee <dan@archlinux.org>
* Add sync044 pactest : A dependency induces a replacement.Chantry Xavier2007-09-23
| | | | | | | | | | | That is the problem mentioned by Nagy there (with suggestions for fixing it) : http://www.archlinux.org/pipermail/pacman-dev/2007-August/009082.html If a dependency conflicts with a local package and has to replace it, the PM_SYNC_TYPE_DEPEND information is lost, and the resulting install reason is wrong (the package is marked as explictly installed). Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
* Add two pactests with broken requiredby, and two about pacsave handling.Chantry Xavier2007-09-23
| | | | | | | | | | | | | | | | | remove048 is the case mentioned there (fails in 3.0 but works in 3.1) : http://www.archlinux.org/pipermail/pacman-dev/2007-September/009294.html It's the same as remove046 with -R instead of -Rc. sync060 is a case reported this morning on IRC : a pacman -Su wanted to replace gensplashutils by gensplash, but pacman said gensplashutils was required by initscripts-gensplash, while initscripts-gensplash was not even installed. This is also fixed in the current 3.1 code though. upgrade02{4,5} are the backup handling problem I described there : http://www.archlinux.org/pipermail/pacman-dev/2007-September/009376.html Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
* libalpm/remove.c: fix up arguments to unlink_fileDan McGee2007-09-23
| | | | | | Move the progressbar code out of unlink_file so we can pass half the args. Signed-off-by: Dan McGee <dan@archlinux.org>
* alpm: removed unused strtoupper wrapper, remove installeddate on parse_descfileDan McGee2007-09-23
| | | | | | | installdate should never be present in a package descfile, so get rid of it. With the last commit, we also don't need the util strtoupper function. Signed-off-by: Dan McGee <dan@archlinux.org>
* libalpm/package.c : fix for FS#8081, case sensitive comparisons in ↵Chantry Xavier2007-09-23
| | | | | | | | | | | | parse_descfile. This fix FS#8081. The tr_TR locale has known issue with case insensitive comparisons, mostly because upper(i) != I. So the .PKGINFO files generated by makepkg MUST contain all keywords in lowercases now. This was already done, but was not mandatory. Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
* libalpm/add.c : fix backup handling (2)Chantry Xavier2007-09-18
| | | | | | | | | | | The mistake fixed in commit 26441cf65ca10d4bf218203df5db5e8a7270787b was actually done at two places. This fix the second one. Also remove one unnecessary newline introduced by commit d34b2c4ed84bc40f4a895846785481fad88116a2 Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
* Update NEWS, -S testing/qt example, and mirrorlist changeDan McGee2007-09-18
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* Refine pacman manpage, clarify -S repo/package possibility, remove --testDan McGee2007-09-17
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* libalpm/add.c : newline fix.Chantry Xavier2007-09-17
| | | | Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
* Avoid segfaults whet calling alpm_option_get_* before initializationStefano Esposito2007-09-17
| | | | | | | | | | | | When calling a function of the alpm_option_get_* group, you get a segfault if you don't call alpm_initialize() first. With this patch those functions set pm_errno to PM_ERR_HANDLE_NULL and return an error value if handle == NULL. (Dan: modified to meet pacman coding standards) Signed-off-by: Stefano Esposito <stefano.esposito87@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
* Update British English translationJeff Bailes2007-09-17
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* Allow rankmirrors to read from stdinPeter Johnson2007-09-17
| | | | | | Feature Request #8043 and provided patch. Thanks! Signed-off-by: Dan McGee <dan@archlinux.org>
* Add Australian mirrorDan McGee2007-09-17
| | | | | | Thanks to Jeff Bailes <thepizzaking@gmail.com> for pointing this out. Signed-off-by: Dan McGee <dan@archlinux.org>
* rankmirrors : add support for the $repo var in url.Chantry Xavier2007-09-17
| | | | | | | | | To keep working correctly with url like : ftp://ftp.archlinux.org/$repo/os/i686 rankmirrors will now replace $repo by core. Signed-off-by: Chantry Xavier <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
* Merge branch 'asciidoc' into workingDan McGee2007-09-16
|\ | | | | | | | | We're getting close to release, so might as well do this now so people can actually update some of our documentation.
| * Update manpage with new query options.Chantry Xavier2007-08-16
| | | | | | | | | | | | | | Dan: did a bit more updating and clarifying. Signed-off-by: Chantry Xavier <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
| * Man page revision timeDan McGee2007-07-16
| | | | | | | | | | | | | | | | | | | | Spruce up the asciidoc formatting, fix a few issues that we had. Formatting now looks pretty good in both the manpage output and the XHTML output. Also added some options that we have changed since 3.0, and a few wording updates, etc. Signed-off-by: Dan McGee <dan@archlinux.org>
| * Add asciidoc checking to configure.ac, make manpage generation optionalDan McGee2007-07-09
| | | | | | | | | | | | | | | | | | Include manpages when we ship a package tarball, and allow them to be generated by the end user if they want by using the --enable-asciidoc option to ./configure. This will allow us to maintain manpages in an easier to modify format while still keeping the make dependencies to a minimum. Signed-off-by: Dan McGee <dan@archlinux.org>
| * Add a manpage for repo-addDan McGee2007-07-09
| | | | | | | | | | | | | | | | We still need some work here- we should have a repo-remove manpage link to this one, and we should not have to struggle with asciidoc formatting to get it to work like any other multiple-command manpage works. Signed-off-by: Dan McGee <dan@archlinux.org>
| * Asciidoc updates- make it pretty, fix build, etc.Dan McGee2007-07-09
| | | | | | | | | | | | | | | | | | | | | | | | * Fix up the target so we rebuild the manpages when we edit the corresponding text file. * Add vim modelines to all of the asciidoc files ensureing the right syntax highlighting is used and we have expandtabs turned off. * Start making a few small changes to PKGBUILD.5 to make it pretty in both HTML and manpage format output. * Fix the manlink macro to include the manpage section in the link. Signed-off-by: Dan McGee <dan@archlinux.org>
| * Update PKGBUILD example.Andrew Fyfe2007-07-09
| | | | | | | | Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
| * Add Synopsis section to man 5 pages.Andrew Fyfe2007-07-09
| | | | | | | | Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
| * Make manpage generation depend on footer.txtDan McGee2007-07-09
| | | | | | | | | | | | | | If footer.txt is updated, we need to regenerate the manpages, this little fix should do this. Signed-off-by: Dan McGee <dan@archlinux.org>
| * doc/Makefile.am: Set pacman version and date when man pages are generated.Andrew Fyfe2007-07-09
| | | | | | | | Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
| * Convert the remaining man pages to asciidoc.Andrew Fyfe2007-07-09
| | | | | | | | Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
| * Move common stuff into footer.txt and some formating tweaks.Andrew Fyfe2007-07-09
| | | | | | | | Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
| * Add two asciidoc manpages to the doc/ dirAndrew Fyfe2007-07-09
| | | | | | | | | | | | | | Add the pacman.8 and pacman.conf.5 asciidoc manpages to the GIT tree, with the rest to follow. Signed-off-by: Dan McGee <dan@archlinux.org>
| * Start addition of asciidoc stuffDan McGee2007-07-09
| | | | | | | | | | | | | | | | Add some asciidoc generation stuff to the doc/ Makefile.am so we can get some manpages up and working. Add necessary stuff to gitignore, and check in the asciidoc.conf file along with the footer for all of the manpages. Signed-off-by: Dan McGee <dan@archlinux.org>
| * Remove old 'static' manpages in anticipation of the asciidoc switchDan McGee2007-07-09
| | | | | | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* | trans.c : reworking of transaction interruptionsChantry Xavier2007-09-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | My two previous hacks related to this part (8038190c7c4786e1c49494eea1b40cdddcbd5136 and b15a5194d1a8485a2769560e49e6ff03e1862533) were caused by the lack of understanding of a feature introduced a while ago: Better control over CTRL-C interruptions -- do not leave the DB in an inconsistent state (54008798efcc9646f622f6b052ecd83281d57cda). Now I have been looking at this commit, and the added feature is indeed interesting. The main problem I had with it is that it does a rather unusual use of alpm_trans_release, which caused a few problems that I tried to fix in a weird way. I think these problems were caused by the fact that there weren't any difference between "interrupt transaction" and "release a transaction which failed" actions from the alpm_trans_release POV. So I decided to add a new function instead, alpm_trans_interrupt, which is called on Ctrl+C, and which only sets trans->state to STATE_INTERRUPTED so that remove_commit and add_commit can exit cleanly at a safe moment. This allowed me to revert my two previous hacks as well. Also ensure we handle SIGINT correctly in all cases- if a transaction is not ongoing, then we can free the transaction and exit quickly. Signed-off-by: Chantry Xavier <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
* | Remove the DB consistency check from pacman and libalpm.Chantry Xavier2007-09-16
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit dfc85cb5f516ffbcff557522e9703c5c7d88b047 and b6f3fe6957d0206485eac98fb2120578b75d0058. This DB check is already in testdb (among others). Also testdb now uses the db path set at make time by default, so specifying the db path is optional. Signed-off-by: Chantry Xavier <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
* | Remove a dead mirror, update contrib/pacsearch for core changeDan McGee2007-09-16
| | | | | | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* | Add new Russian mirrorDan McGee2007-09-16
| | | | | | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* | Make changes for Arch Linux current -> core changeDan McGee2007-09-16
| | | | | | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* | 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>
* | libalpm/deps.c : export _alpm_checkdeps (-> alpm_checkdeps).Chantry Xavier2007-09-11
| | | | | | | | | | Signed-off-by: Chantry Xavier <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
* | libalpm/package.c : add new alpm_pkg_compute_requiredby function.Chantry Xavier2007-09-11
| | | | | | | | Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
* | Make some small changes recommended by splintDan McGee2007-09-11
| | | | | | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* | Fix sync db location in pactest so new location is acceptableDan McGee2007-09-06
| | | | | | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* | libalpm/trans.c : remove the lock even on interrupted transactions.Chantry Xavier2007-09-06
| | | | | | | | Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
* | Add a few pactests collected over time.Chantry Xavier2007-09-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | remove047 : Remove a package required by other packages conflict004 : a package conflicts with itself http://www.archlinux.org/pipermail/pacman-dev/2007-August/009077.html sync400 : Install package with dep that conflicts with older version of package sync401 : Ensure we choose provider already in target list http://www.archlinux.org/pipermail/pacman-dev/2007-July/009041.html sync402/sync403 (failing) : Choice between two providers http://www.archlinux.org/pipermail/pacman-dev/2007-July/008787.html Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
* | scripts/*.sh.in: Clean up and fix a few bugsAndrew Fyfe2007-09-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | repo-add, repo-remove: 'bsdtar -c * | ...' doesn't work (you need '-f -'). Code clean up eliminated this bug. Removed the multiple checksum support, pacman now only supports MD5, so there's no need for the database to contain multiple checksums. Quote all variables containing file/dir names to prevent paths containing spaces from causing problems. Add msg, warning and error functions. General code clean up. pacman-optimize: Use a sub-directory in /tmp for working files to make it easier to clean up at the end. Add quotes round $@ in die and die_r, otherwise printf can't display the message correctly. makepkg: Disable colour output if stderr is not a tty. Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* | Add a few missing includes, caught while compiling on cygwinDan McGee2007-09-06
| | | | | | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* | contrib : update zsh and bash completion to reflect the new sync dbs location.Chantry Xavier2007-09-05
| | | | | | | | | | | | | | I wonder how many tools / scripts deal directly with the sync databases under /var/lib/pacman/ , I doubt these are the only ones. Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
* | libalpm: remove outdated files from POTFILES.inDan McGee2007-09-04
| | | | | | | | | | | | Fixes 'make dist' target as sha1.c and md5driver.c no longer exist. Signed-off-by: Dan McGee <dan@archlinux.org>
* | Fix compile-time error with de.po, runtime error with db.cTravis Willard2007-09-03
| | | | | | | | | | | | | | | | | | | | | | One string in de.po differed pretty strongly with its translated version. It may still be totally wrong as far as translations go, but it compiles now. Get translater to check. Also, ensure the proper dbpath gets set in the db when it's created. Signed-off-by: Travis Willard <travis@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>