[Pkg-sugar-commit] [sugar-datastore] 04/05: Adapt packaging in maintainer mode when targeting experimental branch: Switch git packaging branch. Track any release (else only current branch).

Jonas Smedegaard dr at jones.dk
Sun Jun 14 22:14:03 UTC 2015


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository sugar-datastore.

commit 9407cfb14dc6b2e8182f1ba0bda034e7431b2927
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Sun Jun 14 17:01:05 2015 -0500

    Adapt packaging in maintainer mode when targeting experimental branch: Switch git packaging branch. Track any release (else only current branch).
---
 debian/gbp.conf |  1 +
 debian/rules    | 17 +++++++++++++++++
 debian/watch    |  2 +-
 3 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/debian/gbp.conf b/debian/gbp.conf
index 54b6d52..63950c3 100644
--- a/debian/gbp.conf
+++ b/debian/gbp.conf
@@ -1,6 +1,7 @@
 # Configuration file for git-buildpackage and friends
 
 [DEFAULT]
+debian-branch = master-0.104
 pristine-tar = True
 sign-tags = True
 
diff --git a/debian/rules b/debian/rules
index acb1f08..e1946bf 100755
--- a/debian/rules
+++ b/debian/rules
@@ -32,6 +32,23 @@ pkgbase = python-carquinyol
 pkgbranch = $(lastword $(subst -,$(space),$(DEB_SOURCE_PACKAGE)))
 pkg = $(pkgbase)-$(pkgbranch)
 
+# Adapt packaging in maintainer mode when targeting experimental branch:
+#  * Switch git packaging branch
+#  * Track any release (else only current branch)
+ifneq (,$(DEB_MAINTAINER_MODE))
+experimental := $(strip $(if \
+	$(shell dpkg-parsechangelog \
+		| grep -x 'Distribution: \(experimental\|UNRELEASED\)'),\
+	yes))
+watch-limit = $(if $(experimental),,$(pkgbranch)\\.)
+debian-branch = $(if $(experimental),master,master-$(pkgbranch))
+clean::
+	perl -i -pe 's/\([\d.\\]*\.\*\)/($(watch-limit).*)/' \
+		debian/watch
+	perl -i -pe 's/^debian-branch *= *\K.*/$(debian-branch)/' \
+		debian/gbp.conf
+endif
+
 DEB_UPSTREAM_PACKAGE = $(DEB_SOURCE_PACKAGE:%-$(pkgbranch)=%)
 DEB_UPSTREAM_URL = http://download.sugarlabs.org/sources/sucrose/glucose/sugar-datastore
 DEB_UPSTREAM_TARBALL_EXTENSION = tar.xz
diff --git a/debian/watch b/debian/watch
index e29e282..610b98c 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,3 +1,3 @@
 # run the "uscan" command to check for upstream updates and more.
 version=3
-http://download.sugarlabs.org/sources/sucrose/glucose/sugar-datastore/sugar-datastore-(.*)\.tar\.(?:bz2|xz)
+http://download.sugarlabs.org/sources/sucrose/glucose/sugar-datastore/sugar-datastore-(0.104\..*)\.tar\.(?:bz2|xz)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-sugar/sugar-datastore.git



More information about the pkg-sugar-commit mailing list