Skip to content

Commit

Permalink
quiet signature verification
Browse files Browse the repository at this point in the history
  • Loading branch information
niaow committed Nov 22, 2017
1 parent 977491f commit f425f11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lpkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ fetchinfo() {
echo "Fetching info for $1"
fetch "$REPO" "pkgs/$1.pkginfo" "$tmpdir/$1.pkginfo" || return $?
fetch "$REPO" "pkgs/$1.pkginfo.minisig" "$tmpdir/$1.pkginfo.minisig" || return $?
minisign -Vm "$tmpdir/$1.pkginfo" -p "$LPKGDIR/pubkey.pub" || return 4
minisign -q -Vm "$tmpdir/$1.pkginfo" -p "$LPKGDIR/pubkey.pub" || return 4
local iv="$(infoval "$tmpdir/$1.pkginfo" NAME)" || return $?
if [ "$iv" != "$1" ]; then
echo "Package name mismatch: requested $1 but got $iv" >&2
Expand Down Expand Up @@ -282,7 +282,7 @@ elif [ "$1" == "bootstrap" ]; then
REPO="$3/$4/$5"
mkdir "$ROOTFS" || fail "Failed to mkdir $ROOTFS" 2
mkdir -p "$ROOTFS/etc/lpkg.d/db" || fail "Failed to create lpkg.d" 2
curl "https://$3/minisign.pub" > "$ROOTFS/etc/lpkg.d/pubkey.pub" || fail "Failed to download public key" 4
curl -s "https://$3/minisign.pub" > "$ROOTFS/etc/lpkg.d/pubkey.pub" || fail "Failed to download public key" 4
shift
shift
shift
Expand Down

0 comments on commit f425f11

Please sign in to comment.