From 7206b83f9c3f80f34f42f81c825ff35162002e68 Mon Sep 17 00:00:00 2001 From: Junichi Uekawa Date: Sun, 30 Nov 2008 14:20:13 +0900 Subject: improve B92test-pkg: Allow satisfying dependency inside chroot. This allows easier testing when package is new and not already packaged in Debian. --- examples/B92test-pkg | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/B92test-pkg b/examples/B92test-pkg index 7372ca0..1325e50 100644 --- a/examples/B92test-pkg +++ b/examples/B92test-pkg @@ -8,13 +8,15 @@ set -e echo "Installing the prerequisites" +# ignore the failures since they are not the prime interest for PKG in $(ls /tmp/buildd/*.deb | sed -e's,.*/,,;s,_.*,,' ); do apt-get install -y --force-yes "$PKG" || true apt-get remove -y "$PKG" || true done -# ignore the failures since they are not the prime interest -dpkg -i /tmp/buildd/*.deb +# install the single package, then try to satisfy dependencies. +dpkg -i /tmp/buildd/*.deb || true +apt-get install -y -f --force-yes if chmod a+x /tmp/buildd/*/debian/pbuilder-test/*; then : -- cgit v1.2.3