diff options
author | Junichi Uekawa <dancer@netfort.gr.jp> | 2008-11-30 14:20:13 +0900 |
---|---|---|
committer | Junichi Uekawa <dancer@netfort.gr.jp> | 2008-11-30 14:20:13 +0900 |
commit | 7206b83f9c3f80f34f42f81c825ff35162002e68 (patch) | |
tree | 794798874f1e69935a4c524208c5d4dd6009ac61 /examples | |
parent | 772061423e2bcb64bbd7fc0c7be72144c361a812 (diff) | |
download | pbuilder-7206b83f9c3f80f34f42f81c825ff35162002e68.tar pbuilder-7206b83f9c3f80f34f42f81c825ff35162002e68.tar.gz |
improve B92test-pkg: Allow satisfying dependency inside chroot.
This allows easier testing when package is new and not already
packaged in Debian.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/B92test-pkg | 6 |
1 files changed, 4 insertions, 2 deletions
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 : |