aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclyhtsuriva <aimeric@adjutor.xyz>2024-11-08 21:48:27 +0100
committerclyhtsuriva <aimeric@adjutor.xyz>2024-11-08 21:48:27 +0100
commitaaf413cc544a9b8ae11923f8718ae487a86ffe16 (patch)
tree82720f51b43525ac8e9646b86a330226a256030a
parentf93ea1cd8beb88ce6ff0607d3beb460756769532 (diff)
Add file in /tmp with list of packages to buildHEADmaster
-rwxr-xr-xauto-void-packages/auto-build-all-orphans.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/auto-void-packages/auto-build-all-orphans.sh b/auto-void-packages/auto-build-all-orphans.sh
index 13b5e95..8c4c8cf 100755
--- a/auto-void-packages/auto-build-all-orphans.sh
+++ b/auto-void-packages/auto-build-all-orphans.sh
@@ -42,6 +42,7 @@ typeset package=""
typeset -A pkgs_to_update=()
typeset -i nb_of_pkgs_to_build=0
+typeset pkgs_to_update_fp="/tmp/pkgs_to_update.txt"
typeset pkgs_to_exclude=""
typeset auto_build_archs_path=""
typeset -i pkg_counter=0
@@ -109,10 +110,15 @@ do
done
stop_spinner
+# Infos
echo -n "Number of orphan packages needing an update : " ; printf_green "${#pkgs_to_update[@]}"
echo -n "Number of orphan packages you want to build : " ; printf_red "$nb_of_pkgs_to_build"
echo -n "Packages you want to exclude : " ; printf_red "$pkgs_to_exclude"
+# Saving the content of the pkgs_to_update to a file
+[ -f $pkgs_to_update_fp ] && rm $pkgs_to_update_fp
+echo "${!pkgs_to_update[@]}" > $pkgs_to_update_fp
+
[ $nb_of_pkgs_to_build == 0 ] && exit 1
echo "Executing update-git-repo.sh"
@@ -121,7 +127,7 @@ echo "Executing update-git-repo.sh"
for package in "${!pkgs_to_update[@]}"; do
# If the currently selected package is in the exclude list, continue to the next package
- if echo "$package" | grep -q -E "^($(echo "$pkgs_to_exclude" | tr ',' '|'))"; then #TODO
+ if echo "$package" | grep -q -E "^($(echo "$pkgs_to_exclude" | tr ',' '|'))"; then
continue
fi