[pacman-dev] [PATCH 1/3] Give sensible feedback when a repo has no configured servers

2009-06-06 Thread Dan McGee
This fixes FS#14899. When running an -Sp operation without servers configured for a repository, we would segfault, so add an assert to the backend method returning the first server preventing a null pointer dereference. In addition, add a new error code to libalpm that indicates we have no

[pacman-dev] [GIT] The official pacman repository branch, master, updated. v3.2.2-171-g9af9c0f

2009-06-06 Thread Dan McGee
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project The official pacman repository. The branch, master has been updated via 9af9c0f328094228fa363d842ddc9b2a605f0d22 (commit) from

Re: [pacman-dev] [PATCH] Allow remove to accept 'local/' prefix

2009-06-06 Thread Loui Chang
On Sat, Jun 06, 2009 at 12:07:14PM -0500, Dan McGee wrote: See FS#14542- this allows -Qs output to be fed back into pacman without problems or having to strip off the 'local/' prefix manually. You must have meant FS#14642. I've made a comment there. :D

[pacman-dev] [PATCH] makepkg: refactor sanity checking into a function

2009-06-06 Thread Dan McGee
No new checks, just move it into a function and return 1 rather than exit directly. This also allows the use of local variables. Signed-off-by: Dan McGee d...@archlinux.org --- scripts/makepkg.sh.in | 142 ++--- 1 files changed, 76 insertions(+), 66

[pacman-dev] idea: PM_LOG_ERROR to stderr? (was: [PATCH 1/3] Give sensible feedback when a repo has no configured servers)

2009-06-06 Thread Nagy Gabor
This fixes FS#14899. When running an -Sp operation without servers configured for a repository, we would segfault, so add an assert to the backend method returning the first server preventing a null pointer dereference. In addition, add a new error code to libalpm that indicates we have no

Re: [pacman-dev] idea: PM_LOG_ERROR to stderr? (was: [PATCH 1/3] Give sensible feedback when a repo has no configured servers)

2009-06-06 Thread Dan McGee
On Sat, Jun 6, 2009 at 1:29 PM, Nagy Gaborng...@bibl.u-szeged.hu wrote: This fixes FS#14899. When running an -Sp operation without servers configured for a repository, we would segfault, so add an assert to the backend method returning the first server preventing a null pointer dereference.

Re: [pacman-dev] idea: PM_LOG_ERROR to stderr? (was: [PATCH 1/3] Give sensible feedback when a repo has no configured servers)

2009-06-06 Thread Nagy Gabor
IMHO we should print all error messages to stderr. (This can be done easily in callback functions.) I am sure that it would be better with -Sp (-Sp users usually do pacman -Sup foo.txt), and I don't see any drawbacks in other cases. (What about our scripts?) See also: FS#12101.