[pacman-dev] [PATCH] Give informative error message when the to-be-downloaded file cannot be created

2012-02-08 Thread Nagy Gabor
It can happen that the to-be-downloaded file cannot be created in cachedir. For example, I am an -Sup user, and it is comfortable to set --cachedir to /mnt/pendrive, which is a FAT filesystem, so files like capseo-1:0.3-2-i686.pkg.tar.xz cannot be downloaded to there. Before this patch, pacman

[pacman-dev] [PATCH] Remove a pm_errno = 0 line

2012-02-08 Thread Nagy Gabor
In the download code a successful package-download could reset the previously set pm_errno to 0, which is unwanted. Signed-off-by: Nagy Gabor ng...@bibl.u-szeged.hu --- lib/libalpm/dload.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/lib/libalpm/dload.c

Re: [pacman-dev] [PATCH] Remove a pm_errno = 0 line

2012-02-08 Thread Nagy Gabor
In the download code a successful package-download could reset the previously set pm_errno to 0, which is unwanted. Signed-off-by: Nagy Gabor ng...@bibl.u-szeged.hu This patch needs testing. Btw, I can see more pm_errno = 0 line in the code, which is not a good practice... NG

Re: [pacman-dev] [PATCH] Give informative error message when the to-be-downloaded file cannot be created

2012-02-08 Thread Dan McGee
On Wed, Feb 8, 2012 at 10:52 PM, Nagy Gabor ng...@bibl.u-szeged.hu wrote: It can happen that the to-be-downloaded file cannot be created in cachedir. For example, I am an -Sup user, and it is comfortable to set --cachedir to /mnt/pendrive, which is a FAT filesystem, so files like

Re: [pacman-dev] [PATCH] Remove a pm_errno = 0 line

2012-02-08 Thread Dan McGee
On Wed, Feb 8, 2012 at 11:06 PM, Nagy Gabor ng...@bibl.u-szeged.hu wrote: In the download code a successful package-download could reset the previously set pm_errno to 0, which is unwanted. Signed-off-by: Nagy Gabor ng...@bibl.u-szeged.hu This patch needs testing. Btw, I can see more

Re: [pacman-dev] [PATCH] Remove a pm_errno = 0 line

2012-02-08 Thread Nagy Gabor
On Wed, Feb 8, 2012 at 11:06 PM, Nagy Gabor ng...@bibl.u-szeged.hu wrote: In the download code a successful package-download could reset the previously set pm_errno to 0, which is unwanted. Signed-off-by: Nagy Gabor ng...@bibl.u-szeged.hu This patch needs testing. Btw, I can see