aboutsummaryrefslogtreecommitdiff
path: root/examples/B91dpkg-i
blob: 63e5d11d76dc9beb16d22f15390d358251e06375 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
# try to install the resulting debs.

echo "Trying to install resulting packages and test upgrades"
set -ex


PKGNAMES=$(cd /tmp/buildd && ls -1 *.deb | sed 's/_.*$//' )

# install-remove check
dpkg -i /tmp/buildd/*.deb
dpkg --remove $PKGNAMES

# install-purge check
dpkg -i /tmp/buildd/*.deb
dpkg --purge $PKGNAMES

# upgrade-remove check
apt-get install -y --allow-unauthenticated  $PKGNAMES || true
dpkg -i /tmp/buildd/*.deb
dpkg --remove $PKGNAMES

# upgrade-purge check
apt-get install -y --allow-unauthenticated $PKGNAMES || true
dpkg -i /tmp/buildd/*.deb
dpkg --purge $PKGNAMES