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

guillem pushed a commit to branch master
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=6300b05ed9063d63997741392d1e8a8bdd07eebe

commit 6300b05ed9063d63997741392d1e8a8bdd07eebe
Author: Raphaël Hertzog <[email protected]>
AuthorDate: Tue Jan 18 14:37:11 2011 +0000

    t-multiarch: Ensure dpkg-deb --build refuses to build some invalid packages
    
    * “Multi-Arch: same” packages which would be “Architecture: all”.
    * Packages depending on arch-specific versions of other packages (only
      pkg:any is allowed for now).
    
    Sponsored-by: Linaro Limited
    
    Signed-off-by: Guillem Jover <[email protected]>
---
 t-multiarch/Makefile | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/t-multiarch/Makefile b/t-multiarch/Makefile
index d13fd4cd6..4643d17d8 100644
--- a/t-multiarch/Makefile
+++ b/t-multiarch/Makefile
@@ -66,6 +66,7 @@ build-hook: $(PKG_TO_BUILD)
 ## TEST CASES BELOW ##
 
 TEST_CASES += test-print-foreign-architecture
+TEST_CASES += test-build-invalid
 
 test-case: $(TEST_CASES)
 
@@ -88,6 +89,14 @@ test-print-foreign-architecture:
        $(DPKG) --remove-architecture foobar
        rm -f ref-arch
 
+test-build-invalid:
+       # Test build of Architecture: all with Multi-Arch: same field
+       ! $(DPKG_BUILD_DEB) pkg-template foo.deb
+       rm -f foo.deb
+       # Test build of package with invalid dependency (ma-allowed:fake)
+       ! $(DPKG_BUILD_DEB) pkg-ma-dep-on-allowed-fake_1.0_$(NATIVE_ARCH) 
foo.deb
+       rm -f foo.deb
+
 test-clean:
        $(DPKG_QUERY) -W | grep ^pkg-ma- | (while read pkg ver; do \
            $(DPKG_PURGE) $$pkg; \

-- 
Dpkg.Org's dpkg

Reply via email to