1 TESTS_DEB
:= pkg-real pkg-predepends pkg-trigger
6 # Install the file trigger
7 $(DPKG_INSTALL
) pkg-trigger.deb
8 # Install the pre-dependency with --no-triggers
9 $(DPKG_INSTALL
) --no-triggers pkg-real.deb
10 $(call pkg_status_is
,pkg-real
,install ok triggers-awaited
)
11 # Should pass even if not yet configured...
12 $(DPKG_UNPACK
) --no-triggers pkg-predepends.deb
13 # ...by running the required triggers
14 $(call pkg_status_is
,pkg-real
,install ok installed
)
15 # Retry again, this time the trigger processing is not required
16 # because pkg-real has already been configured once
17 $(DPKG_PURGE
) pkg-predepends
18 $(DPKG_INSTALL
) --no-triggers pkg-real.deb
19 $(call pkg_status_is
,pkg-real
,install ok triggers-awaited
)
20 $(DPKG_UNPACK
) --no-triggers pkg-predepends.deb
21 $(call pkg_status_is
,pkg-real
,install ok triggers-awaited
)
23 $(DPKG_PURGE
) pkg-predepends
24 $(DPKG_PURGE
) pkg-real
25 $(DPKG_PURGE
) pkg-trigger
28 -$(DPKG_PURGE
) pkg-predepends pkg-real pkg-trigger