]> code.delx.au - monosys/commitdiff
arch-check-for-updates
authorJames Bunton <jamesbunton@delx.net.au>
Fri, 17 Jan 2014 03:31:15 +0000 (14:31 +1100)
committerJames Bunton <jamesbunton@delx.net.au>
Fri, 17 Jan 2014 03:31:15 +0000 (14:31 +1100)
scripts/arch-check-for-updates [new file with mode: 0755]

diff --git a/scripts/arch-check-for-updates b/scripts/arch-check-for-updates
new file mode 100755 (executable)
index 0000000..16b678a
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+pacdir="/tmp/pacman-db-update-check"
+
+rm -rf "$pacdir"
+cp -a /var/lib/pacman "$pacdir"
+
+fakeroot pacman --dbpath "$pacdir" -Sy > /dev/null
+pacman --dbpath "$pacdir" -Qu
+