aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-modules
diff options
context:
space:
mode:
authorJunichi Uekawa <dancer@dancer64.netfort.gr.jp>2007-05-27 13:46:59 +0900
committerJunichi Uekawa <dancer@dancer64.netfort.gr.jp>2007-05-27 13:46:59 +0900
commit70600059722511dcbcdae59a7f57f1fdff8a1f7c (patch)
tree8281eb127612ddadeabb4b25bef90db01798569b /pbuilder-modules
parent7fbaa9928c327998c452c9500f8ae14c1ddfbd39 (diff)
downloadpbuilder-70600059722511dcbcdae59a7f57f1fdff8a1f7c.tar
pbuilder-70600059722511dcbcdae59a7f57f1fdff8a1f7c.tar.gz
change "trap" handling so that all trap function calls are called _trap, and they will exit pbuilder after receiving a trap.
Diffstat (limited to 'pbuilder-modules')
-rw-r--r--pbuilder-modules18
1 files changed, 18 insertions, 0 deletions
diff --git a/pbuilder-modules b/pbuilder-modules
index 04a97d1..cfa860c 100644
--- a/pbuilder-modules
+++ b/pbuilder-modules
@@ -432,6 +432,24 @@ function create_basetgz() {
)
}
+# all trap hooks that should lead to 'exit'; and error exit.
+function cleanbuildplace_trap () {
+ cleanbuildplace
+ exit 1
+}
+function saveaptcache_umountproc_cleanbuildplace_trap () {
+ saveaptcache_umountproc_cleanbuildplace
+ exit 1
+}
+function umountproc_cleanbuildplace_trap () {
+ umountproc_cleanbuildplace
+ exit 1
+}
+function umountproc_trap () {
+ umountproc
+ exit 1
+}
+
#Setting environmental variables that are really required:
#required for some packages to install...
export LANG=C