Update pkgar

This commit is contained in:
Jeremy Soller 2020-03-12 20:31:38 -06:00
parent d78ad13104
commit cbb8d68e0b
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1
3 changed files with 7 additions and 7 deletions

View File

@ -442,11 +442,11 @@ function op {
pkgar \
create \
--secret "${ROOT}/build/secret.key" \
--file stage.pkg \
--file stage.pkgar \
stage
;;
unpkg)
rm -fv stage.pkg
rm -fv stage.pkgar
;;
tar)
echo "name = \"$1\"" > "stage.toml"

2
pkgar

@ -1 +1 @@
Subproject commit 0b8522c860af161f72075da4683c3856e1526ea1
Subproject commit 4c5a1b026e30bff7babdc241b3a3d7f1875f0a55

View File

@ -59,13 +59,13 @@ do
fi
fi
if [ ! -f "recipes/$recipe/stage.pkg" ]
if [ ! -f "recipes/$recipe/stage.pkgar" ]
then
echo -e "\033[01;38;5;155mrepo - packaging $recipe\033[0m" >&2
./cook.sh "$recipe" pkg $DEBUG
else
TIME_STAGE="$($STAT -c "%Y" recipes/$recipe/stage.tar.gz)"
TIME_PKG="$($STAT -c "%Y" recipes/$recipe/stage.pkg)"
TIME_PKG="$($STAT -c "%Y" recipes/$recipe/stage.pkgar)"
if [ "$TIME_STAGE" -gt "$TIME_PKG" ]
then
echo -e "\033[01;38;5;155mrepo - repackaging $recipe\033[0m" >&2
@ -82,10 +82,10 @@ do
./cook.sh $recipe publish
fi
if [ "recipes/$recipe/stage.pkg" -nt "$REPO/$recipe.pkg" ]
if [ "recipes/$recipe/stage.pkgar" -nt "$REPO/$recipe.pkgar" ]
then
echo -e "\033[01;38;5;155mrepo - publishing $recipe\033[0m" >&2
cp -v "recipes/$recipe/stage.pkg" "$REPO/$recipe.pkg"
cp -v "recipes/$recipe/stage.pkgar" "$REPO/$recipe.pkgar"
fi
done