On Wed, Oct 03, 2007 at 07:54:26PM +0200, Nagy Gabor wrote:
Hi! I said everything in the subject. You can test with /etc/rc.d/network stop pacman -Sy pacman -Sy
I think this has been introduced by : http://projects.archlinux.org/git/?p=pacman.git;a=commitdiff;h=db9e10f14215a... See, when -Sy fails, alpm_trans_release is not called, only alpm_release in src/pacman/pacman.c , cleanup function. Previously, alpm_release would still call alpm_trans_release when needed. But it doesn't anymore. However, this is not necessarily a problem. When Sy fails, it could go to the cleanup part instead of returning directly, so that alpm_trans_release is called. Here is a patch, not based on git though, but on toofishes working branch, which reverted the other broken commit.
From b5a0f808e43c9145c1612ea7ecf8f2dce38f1936 Mon Sep 17 00:00:00 2001 From: Chantry Xavier
Date: Wed, 3 Oct 2007 22:13:32 +0200 Subject: [PATCH] pacman/sync.c : exit cleanly when synchronizing fails.
Signed-off-by: Chantry Xavier