remove local check
Some checks failed
Construct / build (push) Has been cancelled

This commit is contained in:
Marco Cawthorne 2025-02-10 20:48:40 -08:00
parent c6aacaad5d
commit 7d2662d32e
Signed by: eukara
GPG key ID: CE2032F0A2882A22
4 changed files with 5 additions and 41 deletions

View file

@ -69,12 +69,6 @@ then
VERSION="1.0"
fi
if [ ! -f "$LOCAL_URL" ]
then
printf "Error: Package %s not on local server.\n" "$NAME" >&2
exit 2
fi
AUTHOR_SHORT=$(echo "$AUTHOR" | sed 's/ /_/g' | sed 's/\,//g'| sed 's/-//g' | sed "s|'||g" )
VERSION_SHORT=$(strtolower "$VERSION" | sed 's/ /_/g')

View file

@ -1,30 +0,0 @@
#!/bin/sh
rm SCP_FILES
rm -rf ./pkgs
find ./ -type f -print | grep \\.decl | sort > tmplist1
cat tmplist1
TOTAL_PKGS=$(wc -l tmplist1)
COUNTER=0
cat tmplist1 | while read DECL
do
COUNTER=$((COUNTER+1))
echo "($COUNTER/$TOTAL_PKGS) $DECL"
AUTHOR=$(grep "Unknown" "$DECL")
if [ -n "$AUTHOR" ]
then
LOCAL_FILE=$(grep "local_url" "$DECL" | awk '{ print $2; }')
echo "ark $LOCAL_FILE"
printf "Author: "
read AUTHORNAME
printf "\n"
sed -i "s|Unknown|$AUTHORNAME|g" "$DECL"
fi
done
rm tmplist

View file

@ -97,26 +97,26 @@ then
if [ ! -f "./index/$PKGNAME/qhash" ]
then
QHASH=$(./fteqw -qhash -prefix "$PACKPREFIX" "$LOCAL_URL")
QHASH=$(./fteqw64 -qhash -prefix "$PACKPREFIX" "$LOCAL_URL")
echo "$QHASH" > ./index/$PKGNAME/qhash
echo "Recalculated QHASH: $QHASH"
fi
if [ ! -f "./index/$PKGNAME/signature" ]
then
SIGNATURE=$(./fteqw -privkey ./private-key.pem -pubkey ./public-key.pem -prefix "$PACKPREFIX" -certhost $AUTH_HOST -sign2 "$LOCAL_URL")
SIGNATURE=$(./fteqw64 -privkey ./private-key.pem -pubkey ./public-key.pem -prefix "$PACKPREFIX" -certhost $AUTH_HOST -sign2 "$LOCAL_URL")
echo "$SIGNATURE" > ./index/$PKGNAME/signature
echo "Recalculated SIGNATURE: $SIGNATURE"
fi
else
if [ ! -f "./index/$PKGNAME/qhash" ]
then
QHASH=$(./fteqw -qhash "$LOCAL_URL")
QHASH=$(./fteqw64 -qhash "$LOCAL_URL")
fi
if [ ! -f "./index/$PKGNAME/signature" ]
then
SIGNATURE=$(./fteqw -privkey ./private-key.pem -pubkey ./public-key.pem -certhost $AUTH_HOST -sign2 "$LOCAL_URL")
SIGNATURE=$(./fteqw64 -privkey ./private-key.pem -pubkey ./public-key.pem -certhost $AUTH_HOST -sign2 "$LOCAL_URL")
echo "$SIGNATURE" > ./index/$PKGNAME/signature
echo "Recalculated SIGNATURE: $SIGNATURE"
fi

View file

@ -25,7 +25,7 @@ do
OUTPUT="$(basename "$PKGLIST")"
echo "version 2" > tmplist0
cat "$PKGLIST" >> tmplist0
sig=$(./fteqw -privkey ./private-key.pem -pubkey ./public-key.pem -certhost $AUTH_HOST -sign2 tmplist0)
sig=$(./fteqw64 -privkey ./private-key.pem -pubkey ./public-key.pem -certhost $AUTH_HOST -sign2 tmplist0)
head -n 1 tmplist0 > "$OUTPUT"
echo "signature \"$AUTH_HOST\" \"$sig\"" >> "$OUTPUT"
tail -n +2 tmplist0 >> "$OUTPUT"