Browse Source

make git-buildpackage related functions optional

tags/devuan/0.14.1+devuan6
Daniel Reurich 6 years ago
parent
commit
617e36081f
1 changed files with 14 additions and 11 deletions
  1. +14
    -11
      scripts/generate-git-snapshot

+ 14
- 11
scripts/generate-git-snapshot View File

@@ -391,14 +391,17 @@ cd "$SOURCE_DIRECTORY"
git_cleanup
source_format_opts

# gbp.conf handling
gbp_conf

# make sure common branches are available for git-buildpackage
create_local_branch ${UPSTREAM_BRANCH}
create_local_branch ${DEBIAN_BRANCH}
if [ ${PRISTINE_TAR} = 'true' ]; then
create_local_branch pristine-tar
# Only if we are using git-buildpackage...
if [ "${IGNORE_GIT_BUILDPACKAGE:-}" != "true" ] ; then
# gbp.conf handling
gbp_conf

# make sure common branches are available for git-buildpackage
create_local_branch ${UPSTREAM_BRANCH}
create_local_branch ${DEBIAN_BRANCH}
if [ ${PRISTINE_TAR} = 'true' ]; then
create_local_branch pristine-tar
fi
fi

# check out the according branch/tag with help of $random_branch
@@ -417,13 +420,13 @@ version_information
dch_opts
changelog_generation

# set $GBP_OPTS
gbp_opts

# prepare orig.tar.gz using pristine-tar, but without actually building the source package
if [ "${IGNORE_GIT_BUILDPACKAGE:-}" = "true" ] ; then
echo "Skipping git-buildpackage execution as requested via IGNORE_GIT_BUILDPACKAGE ***"

else
# set $GBP_OPTS
gbp_opts
git-buildpackage ${GBP_OPTS:-}
fi



Loading…
Cancel
Save