summaryrefslogtreecommitdiffstats
path: root/web/BFH-check-missing-builds.sh
blob: 9a175a2e6faeae1c344cb4d73e727e1afbc7944a (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
27
28
29
#!/bin/bash

set -e

if [ -z "${USER}" ]
then
	echo -n "User: "
	read USER
fi

if [ -z "${PASSWORD}" ]
then
	echo -n "Password: "
	read -s PASSWORD
fi

PACKAGES="$(wget -q https://${USER}:${PASSWORD}@git.bfh.science/packages/ -O - | grep "sublevel-repo'><a title=" | sed -e "s|^.*<a title='||g" -e "s|'.*$||")"

echo
echo "Present in git, missing debs:"

for PACKAGE in ${PACKAGES}
do
	if ! wget -q https://apt.bfh.science/archive/${PACKAGE}/current_amd64 -O /dev/null 2>&1 && \
	   ! wget -q https://apt.bfh.science/archive/${PACKAGE}/current_all -O /dev/null 1>&1
	then
		echo "  ${PACKAGE}"
	fi
done