fi
fi
-if test -n "$RPMS" -a -d "$BUILD_ROOT/$TOPDIR/RPMS" -a -d "$OLD_PACKAGES" -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.
- chroot $BUILD_ROOT /usr/lib/build/same-build-result.sh "$OLD_PACKAGES" "$TOPDIR/RPMS" "$TOPDIR/SRPMS" && cleanup_and_exit 2
-fi
-
# IMPLEMENT ME: place code for creating binary package deltas here
if test -n "$RUNNING_IN_VM" -a -n "$VM_SWAP"; then
$BUILD_DIR/extractbuild "$VM_SWAP" || cleanup_and_exit 1
fi
+if test -n "$RPMS" -a -d "$BUILD_ROOT/$TOPDIR/RPMS" -a -d "$OLD_PACKAGES" -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.
+ chroot $BUILD_ROOT /usr/lib/build/same-build-result.sh "$OLD_PACKAGES" "$TOPDIR/RPMS" "$TOPDIR/SRPMS" && cleanup_and_exit 2
+fi
+
echo "... build is finished"
cleanup_and_exit 0