Skip to content

Commit

Permalink
[merge] from unstable into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
OneCDOnly committed Sep 10, 2024
2 parents 63b46d9 + bfc4242 commit 3e43332
Show file tree
Hide file tree
Showing 8 changed files with 1,266 additions and 1,242 deletions.
Binary file modified objects.tar.gz
Binary file not shown.
Binary file modified sherpa-manager.tar.gz
Binary file not shown.
7 changes: 6 additions & 1 deletion support/build-manager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@ a=$support_path/$management_source_file
b=$support_path/$management_file

SwapTags "$a" "$b"
Squeeze "$b" "$b"

if grep -q '<?\|?>' "$b"; then
ColourTextBrightRed "'$b' contains unswapped tags, can't continue"; echo
exit 1
fi

Squeeze "$b" "$b"
[[ -e $b ]] && chmod 554 "$b"

exit 0
55 changes: 30 additions & 25 deletions support/build-objects.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,24 @@ target=$support_path/$objects_file

# These are used internally by sherpa. Must maintain separate lists for sherpa internal-use, and what user has requested.
# ordered
PACKAGE_TIERS=(independent auxiliary dependent)
r_package_tiers=(independent auxiliary dependent)

# sorted
QPKG_IS_STATES=(active backedup downloaded enabled installable installed missing signed upgradable)
QPKG_ISNT_STATES=(active backedup downloaded enabled installable installed missing signed upgradable)
QPKG_IS_GROUPS=(all canbackup canclean canrestarttoupdate dependent hasdependents independent)
QPKG_ISNT_GROUPS=(canclean)
QPKG_STATES_TRANSIENT=(restarting slow starting stopping unknown)
QPKG_SERVICE_RESULTS=(failed ok)
r_qpkg_is_states=(active backedup downloaded enabled installable installed missing signed upgradable)
r_qpkg_isnt_states=(active backedup downloaded enabled installable installed missing signed upgradable)
r_qpkg_is_groups=(all canbackup canclean canrestarttoupdate dependent hasdependents independent)
r_qpkg_isnt_groups=(canclean)
r_qpkg_states_transient=(restarting slow starting stopping unknown)
r_qpkg_service_results=(failed ok)

# ordered
QPKG_ACTIONS=(status list rebuild reassign download backup deactivate disable uninstall upgrade reinstall install enableau disableau sign restore clean enable activate reactivate)
IPK_ACTIONS=(downgrade download uninstall upgrade install)
PIP_ACTIONS=(uninstall upgrade install)
r_qpkg_actions=(status list rebuild reassign download backup deactivate disable uninstall upgrade reinstall install enableau disableau sign restore clean enable activate reactivate)
r_ipk_actions=(downgrade download uninstall upgrade install)
r_pip_actions=(uninstall upgrade install)

# These actions may be specified by the user.
# sorted
USER_QPKG_ACTIONS=(activate backup clean deactivate disable disableau enable enableau install list reactivate reassign rebuild reinstall restore sign status uninstall upgrade)
r_user_qpkg_actions=(activate backup clean deactivate disable disableau enable enableau install list reactivate reassign rebuild reinstall restore sign status uninstall upgrade)

AddFlagObj()
{
Expand Down Expand Up @@ -123,62 +123,62 @@ echo $public_function_name':Add()
}

[[ -e $target ]] && rm -f "$target"
echo "OBJECTS_VER='<?build_date?>'" > "$target"
echo "r_objects_version='<?build_date?>'" > "$target"
echo "#* <?dont_edit?>" >> "$target"

# package action flag objects.

for action in "${USER_QPKG_ACTIONS[@]}"; do
for state in "${QPKG_IS_STATES[@]}"; do
for action in "${r_user_qpkg_actions[@]}"; do
for state in "${r_qpkg_is_states[@]}"; do
AddFlagObj QPKGs.AC"$action".IS"$state"
done

for state in "${QPKG_ISNT_STATES[@]}"; do
for state in "${r_qpkg_isnt_states[@]}"; do
AddFlagObj QPKGs.AC"$action".ISNT"$state"
done

for group in "${QPKG_IS_GROUPS[@]}"; do
for group in "${r_qpkg_is_groups[@]}"; do
AddFlagObj QPKGs.AC"$action".GR"$group"
done

for group in "${QPKG_ISNT_GROUPS[@]}"; do
for group in "${r_qpkg_isnt_groups[@]}"; do
AddFlagObj QPKGs.AC"$action".GRNT"$group"
done
done

# session list objects.

for action in "${QPKG_ACTIONS[@]}"; do
for action in "${r_qpkg_actions[@]}"; do
for prefix in to ok er sk so se sa dn; do # to-do, done ok, done error, skipped, skipped-but-ok, skipped-with-error, skipped-with-abort, done (all processed QPKGs are placed in the 'done' list, as-well as the regular exit status lists).
AddListObj "QPKGs-AC${action}-${prefix}"
done
done

for state in "${QPKG_IS_STATES[@]}" "${QPKG_STATES_TRANSIENT[@]}" "${QPKG_SERVICE_RESULTS[@]}"; do
for state in "${r_qpkg_is_states[@]}" "${r_qpkg_states_transient[@]}" "${r_qpkg_service_results[@]}"; do
AddListObj QPKGs-IS"$state"
done

for state in "${QPKG_ISNT_STATES[@]}" "${QPKG_STATES_TRANSIENT[@]}" "${QPKG_SERVICE_RESULTS[@]}"; do
for state in "${r_qpkg_isnt_states[@]}" "${r_qpkg_states_transient[@]}" "${r_qpkg_service_results[@]}"; do
AddListObj QPKGs-ISNT"$state"
done

for group in "${QPKG_IS_GROUPS[@]}"; do
for group in "${r_qpkg_is_groups[@]}"; do
AddListObj QPKGs-GR"$group"
done

for group in "${QPKG_ISNT_GROUPS[@]}"; do
for group in "${r_qpkg_isnt_groups[@]}"; do
AddListObj QPKGs-GRNT"$group"
done

for action in "${IPK_ACTIONS[@]}"; do
for action in "${r_ipk_actions[@]}"; do
[[ $action != list ]] || continue

for prefix in to ok er sk; do
AddListObj "IPKs-AC${action}-${prefix}"
done
done

for action in "${PIP_ACTIONS[@]}"; do
for action in "${r_pip_actions[@]}"; do
[[ $action != list ]] || continue

for prefix in to ok er; do
Expand All @@ -194,8 +194,13 @@ else
fi

SwapTags "$target" "$target"
Squeeze "$target" "$target"

if grep -q '<?\|?>' "$target"; then
ColourTextBrightRed "'$target' contains unswapped tags, can't continue"; echo
exit 1
fi

Squeeze "$target" "$target"
[[ -f $target ]] && chmod 444 "$target"

exit 0
2 changes: 1 addition & 1 deletion support/check-syntax.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ declare -a b
declare -i i=0

a+=("$support_path/$management_source_file")
b+=(1090,1117,2012,2015,2016,2018,2019,2030,2031,2034,2086,2119,2120,2128,2155,2178,2181,2194,2206,2207,2209,2254,2317)
b+=(1090,1117,2012,2015,2016,2018,2019,2030,2031,2034,2086,2119,2120,2128,2154,2155,2178,2181,2194,2206,2207,2209,2254,2317)

# a+=("$support_path/*.sh")
# b+=(1036,1090,1091,2001,2006,2012,2016,2028,2034,2054,2086,2154,2155)
Expand Down
Loading

0 comments on commit 3e43332

Please sign in to comment.