4 # test building package with missing Architecture field.
5 ! $(DPKG_BUILD_DEB
) pkg-no-arch
8 $(DPKG_BUILD_DEB
) --nocheck pkg-no-arch
10 # test handling of package without the Architecture field
11 ! $(DPKG_INSTALL
) pkg-no-arch.deb
12 $(call pkg_is_not_installed
,pkg-no-arch
)
13 # these ancient/bogus packages need to be forced now
14 $(DPKG_INSTALL
) --force-architecture pkg-no-arch.deb
15 $(call pkg_is_installed
,pkg-no-arch
)
16 ! $(call stdout_has
,$(DPKG_QUERY
) --status pkg-no-arch
,^Architecture
:)
17 $(DPKG_PURGE
) pkg-no-arch
18 # Clear the available file to avoid missing Architecture warnings
19 $(BEROOT
) $(DPKG
) --clear-avail