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

Jonas Smedegaard dr at jones.dk
Mon Jun 15 01:30:56 UTC 2015


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

js pushed a commit to branch master
in repository sugar.

commit cbafda450a1f1f07cb0923f68b5b72d1057d1c64
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Sun Jun 14 20:07:59 2015 -0500

    Adapt packaging in maintainer mode when targeting experimental: 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 cd3fa3d..ab8b90f 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
 compression = xz
diff --git a/debian/rules b/debian/rules
index 6a71447..7aacd44 100755
--- a/debian/rules
+++ b/debian/rules
@@ -35,6 +35,23 @@ include /usr/share/cdbs/1/rules/debhelper.mk
 
 comma = ,
 
+# 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/$(DEB_UPSTREAM_PACKAGE)
 DEB_UPSTREAM_TARBALL_EXTENSION = tar.xz
diff --git a/debian/watch b/debian/watch
index 7db9eb8..fe2600f 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/sugar-(\d[\d.]+)\.tar\.(?:bz2|xz)
+http://download.sugarlabs.org/sources/sucrose/glucose/sugar/sugar-(0.104\..*)\.tar\.(?:bz2|xz)

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



More information about the pkg-sugar-commit mailing list