[pkg-wine-party] [SCM] Debian Wine packaging branch, master, updated. wine-0.9.61-1-4-g3d97354

Ove Kaaven ovek at arcticnet.no
Tue May 6 07:21:40 UTC 2008


The following commit has been merged in the master branch:
commit 7149572f2b2da436762c5278b612000a7e26dff5
Author: Ove Kaaven <ovek at arcticnet.no>
Date:   Tue May 6 07:06:37 2008 +0200

    Improved debian/maint/build-final's generation of changelogs for Debian revisions.

diff --git a/debian/maint/build-final b/debian/maint/build-final
index a17fd73..4dc21c4 100755
--- a/debian/maint/build-final
+++ b/debian/maint/build-final
@@ -2,12 +2,26 @@
 set -e
 rm -f debian/amd64.tar.lzma.uu
 version=`dpkg-parsechangelog|sed -n 's/Version: \(.*\)/\1/p'`
-last_version=`dpkg-parsechangelog -o1 -c1|sed -n 's/Version: \(.*\)/\1/p'`
+# see if the version in the changelog is tagged (already built)
+obj_type=`git-cat-file -t "wine-$version" 2>/dev/null`
+if [ -n "$obj_type" ]
+then
+  # it is, so only grab changes since then
+  last_version="$version"
+else
+  # it's not, this must be the dummy changelog from import-done,
+  # so grab changes since version before that
+  last_version=`dpkg-parsechangelog -o1 -c1|sed -n 's/Version: \(.*\)/\1/p'`
+fi
+# build changelog
 git-dch --release --auto --full --meta \
  --debian-tag="wine-$last_version" \
  --git-log="--first-parent"
+# commit changelog
+version=`dpkg-parsechangelog|sed -n 's/Version: \(.*\)/\1/p'`
 git add debian/changelog
 git commit -m "Release $version"
+# build package
 export DEB_FIXDIFF=yes
 git-buildpackage --git-pristine-tar \
  --git-upstream-tag="wine-%(version)s" \

-- 
Debian Wine packaging



More information about the pkg-wine-party mailing list