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:
af9487c
)
abort if $TOPDIR is empty
author
Ludwig Nussel
<ludwig.nussel@suse.de>
Wed, 31 Mar 2010 08:46:20 +0000
(10:46 +0200)
committer
Ludwig Nussel
<ludwig.nussel@suse.de>
Wed, 31 Mar 2010 09:05:54 +0000
(11:05 +0200)
build
patch
|
blob
|
history
diff --git
a/build
b/build
index
333e8bb
..
124adf1
100755
(executable)
--- a/
build
+++ b/
build
@@
-1516,6
+1516,10
@@
for SPECFILE in "${SPECFILES[@]}" ; do
if test "$BUILDTYPE" = spec ; then
TOPDIR=`chroot $BUILD_ROOT su -c "rpm --eval '%_topdir'" - $BUILD_USER`
+ if test -z "$TOPDIR"; then
+ echo "Error: TOPDIR empty"
+ cleanup_and_exit 1
+ fi
else
TOPDIR=/usr/src/packages
mkdir -p $BUILD_ROOT$TOPDIR