From beb9916a9621e11890b49b210d338fb38f476a27 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Adrian=20Schr=C3=B6ter?= Date: Wed, 22 Jul 2009 10:56:50 +0000 Subject: [PATCH] mount proc filesystem for build compare run --- build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build b/build index 58bd2bd..ee81a9e 100755 --- a/build +++ b/build @@ -1654,7 +1654,9 @@ fi if test -n "$RPMS" -a -d "$BUILD_ROOT/$TOPDIR/RPMS" -a -d "$BUILD_ROOT/.build.oldpackages" -a -x "$BUILD_ROOT/usr/lib/build/same-build-result.sh" ; then echo "... comparing built packages with the former built" # exit with 2, if packages built successfull, but have no changes to former built packages. + mount -n -tproc none $BUILD_ROOT/proc 2> /dev/null chroot $BUILD_ROOT /usr/lib/build/same-build-result.sh /.build.oldpackages "$TOPDIR/RPMS" "$TOPDIR/SRPMS" && cleanup_and_exit 2 + umount -n $BUILD_ROOT/proc 2> /dev/null fi echo -- 2.7.4