aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/apt-check.sh
blob: 67894a2ae19346e5913d06da4c9143eca1483fe9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

#set -x

sdir=`dirname $(readlink -f "${BASH_SOURCE[0]}")`
rootdir=`dirname $sdir`

packfile=$1

echo "Testing packages in ${packfile}"
PACKAGES=$(sed -f "${sdir}/remove-comments.sed" < "${packfile}")

for i in ${PACKAGES} ; do 
    if ! apt-cache show ${i} > /dev/null 2>&1 ; then 
        echo missing ${i} 
    else 
        echo exists ${i} 
    fi 
done