CHANGELOGARGS=
test -n "$CHANGELOG" -a -f "$BUILD_ROOT/.build-changelog" && CHANGELOGARGS="--changelog $BUILD_ROOT/.build-changelog"
+ if test $BUILD_USER = abuild ; then
+ chown -R 399:399 $BUILD_ROOT$TOPDIR/*
+ else
+ chown -R root:root $BUILD_ROOT$TOPDIR/*
+ fi
+
if test "$BUILDTYPE" = spec ; then
# do buildrequires/release substitution
args=()
chroot $BUILD_ROOT su -c "dpkg-source -x $DEB_SOURCEDIR/$DEB_DSCFILE $TOPDIR/BUILD" - $BUILD_USER
fi
- if test $BUILD_USER = abuild ; then
- chown -R 399:399 $BUILD_ROOT$TOPDIR/*
- else
- chown -R root:root $BUILD_ROOT$TOPDIR/*
- fi
cd $BUILD_ROOT$TOPDIR/SOURCES || cleanup_and_exit 1
echo -----------------------------------------------------------------