Skip to content
Snippets Groups Projects
Verified Commit d553dbc0 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Prevent rebuilding pkgar archives

parent bfc36088
No related branches found
No related tags found
No related merge requests found
...@@ -26,8 +26,22 @@ do ...@@ -26,8 +26,22 @@ do
then then
target/release/cook "$recipe" target/release/cook "$recipe"
echo -e "\033[01;38;5;155mrepo - legacy tar for $recipe\033[0m" >&2 if [ ! -f "recipes/$recipe/stage.tar.gz" ]
./cook.sh "$recipe" tar then
echo -e "\033[01;38;5;155mrepo - legacy packaging $recipe\033[0m" >&2
./cook.sh "$recipe" tar $DEBUG
else
TIME_PKG="$($STAT -c "%Y" recipes/$recipe/stage.pkgar)"
TIME_STAGE="$($STAT -c "%Y" recipes/$recipe/stage.tar.gz)"
if [ "$TIME_PKG" -gt "$TIME_STAGE" ]
then
echo -e "\033[01;38;5;155mrepo - legacy repackaging $recipe\033[0m" >&2
./cook.sh "$recipe" untar tar $DEBUG
fi
fi
# Match pkgar and tar time
touch --no-create --reference="recipes/$recipe/stage.tar.gz" "recipes/$recipe/stage.pkgar"
continue continue
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment