Firmicus a écrit :
> This could be another bug. I'll test this later.

And here is another patch for that.


>From 96f68a7cb9eed01662ee14ba1943cba61241ed8a Mon Sep 17 00:00:00 2001
From: Francois Charette <[email protected]>
Date: Mon, 20 Jul 2009 11:41:35 +0200
Subject: [PATCH] Fix final "cleanup" to avoid spurious error msg

* When calling cleanup at the end of db-update, the function
  repo_unlock is called, but the repo-locks have already been unlocked!
  So we get a spurious error message. This commit replaces "cleanup" by
  "rm -rf $WORKDIR".
---
 db-update |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/db-update b/db-update
index ba8c3b5..67f8782 100755
--- a/db-update
+++ b/db-update
@@ -231,5 +231,5 @@ done
 if [ -n "$to_add_any" ]; then
 	/bin/rm $to_add_any
 fi
-cleanup
+rm -rf $WORKDIR
 # vim: set ts=4 sw=4 noet ft=sh:
-- 
1.6.3.3

Reply via email to