Log In
Log In
Places
All Projects
Status Monitor
Collapse sidebar
obs:server:fedora:2.8
build
_service:gitpkg:0008-Add-skip-prep-to-ask-a-sui...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:gitpkg:0008-Add-skip-prep-to-ask-a-suitable-rpm-to-skip-the-prep.patch of Package build
From a7c0eb5978aeefae12985cce93d187aff405d359 Mon Sep 17 00:00:00 2001 From: David Greaves <david@dgreaves.com> Date: Fri, 27 Jul 2012 10:00:49 +0100 Subject: [PATCH] Add --skip-prep to ask a suitable rpm to skip the %prep phase --- build | 7 +++++++ build-recipe-spec | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) mode change 100755 => 100644 build diff --git a/build b/build old mode 100755 new mode 100644 index 36b2b0d..94c7d79 --- a/build +++ b/build @@ -175,6 +175,10 @@ Known Parameters: Exit once the chroot has been setup and before the build starts. Useful for making development root filesystems. + --skip-prep + When running build, skip the %prep phase. This can be + useful when using rsync. + --no-checks Do not run checks (postbuild and %check) --lint Run rpmlint after build. @@ -809,6 +813,9 @@ while test -n "$1"; do -chroot-only) DO_BUILD=false ;; + -skip-prep) + SKIP_PREP=true + ;; -nochecks|-no-checks) DO_CHECKS=false ;; diff --git a/build-recipe-spec b/build-recipe-spec index eb93728..c2d78aa 100644 --- a/build-recipe-spec +++ b/build-recipe-spec @@ -26,7 +26,7 @@ recipe_setup_spec() { if test -z "$TOPDIR"; then cleanup_and_exit 1 "Error: TOPDIR empty" fi - test "$DO_INIT_TOPDIR" = false || rm -rf "$BUILD_ROOT$TOPDIR" + test -n "$SKIP_PREP" -o "$DO_INIT_TOPDIR" = false || rm -rf "$BUILD_ROOT$TOPDIR" for i in BUILD RPMS/`uname -m` RPMS/i386 RPMS/noarch SOURCES SPECS SRPMS BUILDROOT OTHER ; do mkdir -p $BUILD_ROOT$TOPDIR/$i done @@ -148,6 +148,10 @@ recipe_build_spec() { rpmbopts[${#rpmbopts[@]}]='--define' rpmbopts[${#rpmbopts[@]}]="RSYNCDONE 1" fi + if test -n "$SKIP_PREP" ; then + rpmbopts[${#rpmbopts[@]}]='--skip-prep' + rpmbopts[${#rpmbopts[@]}]='--skip-clean' + fi buildrootoverride=$(queryconfig --dist "$BUILD_DIST" --configdir "$CONFIG_DIR" --archpath "$BUILD_ARCH" buildflags rpm-buildroot-override) if test -n "$buildrootoverride" ; then -- 2.14.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Contact
Support
@OBShq
The Open Build Service is an
openSUSE project
.
Log In
Places
Places
All Projects
Status Monitor