summaryrefslogtreecommitdiffhomepage
path: root/once
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-11-03 01:02:13 +0000
committermidipix <writeonce@midipix.org>2021-11-12 19:10:00 +0000
commit3f01df052ca14b084abe8bfd7d4b82f984c913b9 (patch)
treed9c593cda3a1074c6841b20cedb11913fe72c6e8 /once
parentcf9939802256e70d2eb41c1727d7a1401323ca05 (diff)
downloadmpackage-3f01df052ca14b084abe8bfd7d4b82f984c913b9.tar.bz2
mpackage-3f01df052ca14b084abe8bfd7d4b82f984c913b9.tar.xz
once/update.sh: update signatures of installed tarballs.
Diffstat (limited to 'once')
-rwxr-xr-xonce/update.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/once/update.sh b/once/update.sh
index 68cd929..6962973 100755
--- a/once/update.sh
+++ b/once/update.sh
@@ -48,6 +48,10 @@ for tarball in $tarballs; do
mv /updates/$tarball /tarballs/
mv /updates/$tarball.sha256 /tarballs/
+ grep -v $tarball /etc/tarballs.sha256 > /etc/tarballs.sha256.tmp
+ printf '%s %s\n' $pkgsig $tarball >> /etc/tarballs.sha256.tmp
+ mv /etc/tarballs.sha256.tmp /etc/tarballs.sha256
+
echo ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
echo
done