summaryrefslogtreecommitdiffstats
path: root/web/BFH-check-missing-builds.sh
diff options
context:
space:
mode:
Diffstat (limited to 'web/BFH-check-missing-builds.sh')
-rwxr-xr-xweb/BFH-check-missing-builds.sh29
1 files changed, 29 insertions, 0 deletions
diff --git a/web/BFH-check-missing-builds.sh b/web/BFH-check-missing-builds.sh
new file mode 100755
index 0000000..9a175a2
--- /dev/null
+++ b/web/BFH-check-missing-builds.sh
@@ -0,0 +1,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