summaryrefslogtreecommitdiffstats
path: root/db-update
diff options
context:
space:
mode:
Diffstat (limited to 'db-update')
-rwxr-xr-xdb-update4
1 files changed, 2 insertions, 2 deletions
diff --git a/db-update b/db-update
index 338fb5b..525c21e 100755
--- a/db-update
+++ b/db-update
@@ -46,7 +46,6 @@ fi
cleanup() {
trap '' 0 2
- # unlock
repo_unlock $reponame $current_arch
rm -rf "$WORKDIR"
[ "$1" ] && exit $1
@@ -54,7 +53,7 @@ cleanup() {
ctrl_c() {
echo "Interrupted" >&2
- cleanup 0
+ cleanup 1
}
die() {
@@ -233,5 +232,6 @@ if [ -n "$to_add_any" ]; then
/bin/rm $to_add_any
fi
+trap '' 0 2
rm -rf $WORKDIR
# vim: set ts=4 sw=4 noet ft=sh: