[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[SCM] Debian package checker branch, master, updated. 1.24.2-54-g3dab796



The following commit has been merged in the master branch:
commit 45346ee467fc6b3d50c7562456707c0a69a9b645
Author: Tobias Quathamer <toddy@debian.org>
Date:   Wed Jul 30 13:26:57 2008 +0200

    Add test for debian-revision-should-not-be-zero

diff --git a/testset/fields/debian/changelog b/testset/fields/debian/changelog
index fa99d96..f008656 100644
--- a/testset/fields/debian/changelog
+++ b/testset/fields/debian/changelog
@@ -4,5 +4,6 @@ fields (1.5-.3) unstable; urgency=low
     - debian-revision-not-well-formed
     - depends-on-python-minimal
     - essential-no-not-needed
+    - debian-revision-should-not-be-zero
 
  -- Tobias Quathamer <toddy@debian.org>  Wed, 30 Jul 2008 12:35:09 +0200
diff --git a/testset/fields/debian/control b/testset/fields/debian/control
index 6738f1e..bc88ff1 100644
--- a/testset/fields/debian/control
+++ b/testset/fields/debian/control
@@ -10,3 +10,10 @@ Architecture: all
 Depends: python-minimal
 Description: Generate some errors
  Field testing is fun!
+
+Package: another-version
+Section: admin
+Architecture: all
+Depends: nothing
+Description: Also generate some errors
+ This package gets another version number.
diff --git a/testset/fields/debian/rules b/testset/fields/debian/rules
index 9c3abac..eb139f3 100755
--- a/testset/fields/debian/rules
+++ b/testset/fields/debian/rules
@@ -11,8 +11,14 @@ binary-indep:
 	install -m 644 debian/changelog \
 	  $(tmp)/usr/share/doc/fields/changelog
 	gzip -9 $(tmp)/usr/share/doc/fields/changelog
-	dh_md5sums
-	dpkg-gencontrol
+	dh_md5sums -pfields -P$(tmp)
+	dpkg-gencontrol -pfields -P$(tmp)
+	dpkg --build $(tmp) ..
+	rm -rf $(tmp)
+
+	# Create another package with a different version
+	dh_md5sums -panother-version -P$(tmp)
+	dpkg-gencontrol -panother-version -v123.4-0 -P$(tmp)
 	dpkg --build $(tmp) ..
 
 binary: binary-arch binary-indep
diff --git a/testset/tags.fields b/testset/tags.fields
index 19f112a..9aedaab 100644
--- a/testset/tags.fields
+++ b/testset/tags.fields
@@ -1,8 +1,10 @@
+E: another-version: no-copyright-file
 E: fields source: package-uses-debhelper-but-lacks-build-depends
 E: fields: debian-changelog-file-missing-or-wrong-name
 E: fields: depends-on-python-minimal depends
 E: fields: essential-no-not-needed
 E: fields: no-copyright-file
+W: another-version: debian-revision-should-not-be-zero 123.4-0
 W: fields source: changelog-should-mention-nmu
 W: fields source: debian-revision-not-well-formed 1.5-.3
 W: fields source: native-package-with-dash-version

-- 
Debian package checker


Reply to: