mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-23 13:24:17 +08:00
Update pkgar
This commit is contained in:
parent
d78ad13104
commit
cbb8d68e0b
4
cook.sh
4
cook.sh
@ -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
2
pkgar
@ -1 +1 @@
|
||||
Subproject commit 0b8522c860af161f72075da4683c3856e1526ea1
|
||||
Subproject commit 4c5a1b026e30bff7babdc241b3a3d7f1875f0a55
|
||||
8
repo.sh
8
repo.sh
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user