projects
/
tools
/
obs-build.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8faf919
)
allow to continue despite potentially broken build root
author
Ludwig Nussel
<ludwig.nussel@suse.de>
Tue, 11 Mar 2008 14:47:11 +0000
(14:47 +0000)
committer
Ludwig Nussel
<ludwig.nussel@suse.de>
Tue, 11 Mar 2008 14:47:11 +0000
(14:47 +0000)
init_buildsystem
patch
|
blob
|
history
diff --git
a/init_buildsystem
b/init_buildsystem
index
6ee650b
..
2aa6352
100755
(executable)
--- a/
init_buildsystem
+++ b/
init_buildsystem
@@
-255,14
+255,15
@@
if test -e $BUILD_IS_RUNNING ; then
umount -n $BUILD_ROOT/mnt 2> /dev/null
echo "Your build system is broken!! Shall I execute"
echo
- echo " rm -rf $BUILD_ROOT"
+ echo " rm -rf
--
$BUILD_ROOT"
echo
- echo -n "[y/N] "
+ echo -n "[y/N
/c
] "
read ANSWER
- test "$ANSWER" != y && {
- exit
- }
- clean_build_root
+ case "$ANSWER" in
+ c|C) rm -f $BUILD_IS_RUNNING ;;
+ y|Y) clean_build_root ;;
+ *) cleanup_and_exit 1 ;;
+ esac
fi
#