Skip to content

Commit d1f3dd0

Browse files
authored
"AM" 9.6.1
- third party databases have been moved to a separate file called "am-extras" - all commits related to improving the "-e" or "extra" option are included for this release
1 parent 658b33a commit d1f3dd0

File tree

1 file changed

+7
-17
lines changed

1 file changed

+7
-17
lines changed

APP-MANAGER

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
AMVERSION="9.6-1"
3+
AMVERSION="9.6.1"
44

55
# Determine main repository and branch
66
AMREPO="https://raw.githubusercontent.com/ivan-hc/AM/main"
@@ -423,22 +423,11 @@ _am_newrepo_check "$@"
423423
# 3RD PARTY SOURCES
424424
################################################################################################################################################################
425425

426-
# APPBUNDLEHUB
427-
#export appbundle_repo="https://github.com/xplshn/AppBundleHUB"
428-
#export appbundle_readme="https://raw.githubusercontent.com/ivan-hc/am-extras/main/appbundlehub/${ARCH}.md"
429-
#[ -n "$appbundle_readme" ] && third_party_flags="$third_party_flags --appbundle"
430-
431-
# SOARPKGS
432-
export soarpkg_repo="https://github.com/pkgforge/soarpkgs"
433-
export soarpkg_readme="https://raw.githubusercontent.com/ivan-hc/am-extras/main/soarpkgs/${ARCH}.md"
434-
[ -n "$soarpkg_readme" ] && third_party_flags="$third_party_flags --soarpkg"
435-
export soarpkg_missing_file_msg="\nIt appears that the selected file is not available.\n\nThis happens due to pkgforge's mirror Issue.\nLearn more: https://docs.pkgforge.dev/repositories/bincache/cache\n\nAlternatively, install \"soar\" or \"dbin\" and use those.\n\n"
436-
437-
# TOOLPACKS/SOARPKGS
438-
export toolpack_repo="https://github.com/pkgforge/soarpkgs (ex toolpacks)"
439-
export toolpack_readme="https://raw.githubusercontent.com/ivan-hc/am-extras/main/soarpkgs-toolpacks/${ARCH}.md"
440-
[ -n "$toolpack_readme" ] && third_party_flags="$third_party_flags --toolpack"
441-
export toolpack_missing_file_msg="\nIt appears that the selected file is not available.\n\nThis happens due to pkgforge's mirror Issue.\nLearn more: https://docs.pkgforge.dev/repositories/bincache/cache\n\nAlternatively, install \"soar\" or \"dbin\" and use those.\n\n"
426+
[ -z "$AM_EXTRA_SOURCES" ] && AM_EXTRA_SOURCES="https://raw.githubusercontent.com/ivan-hc/am-extras/main/am-extras"
427+
if [ ! -f "$AMDATADIR"/am-extras ]; then
428+
wget -q --tries=10 --timeout=20 --spider https://github.com && curl -Ls "$AM_EXTRA_SOURCES" > "$AMDATADIR"/am-extras
429+
fi
430+
[ -f "$AMDATADIR"/am-extras ] && source "$AMDATADIR"/am-extras
442431

443432
#################################
444433
# ALL THE ABOVE
@@ -462,6 +451,7 @@ _third_party_lsts_filter() {
462451
}
463452

464453
_sync_third_party_lists() {
454+
curl -Ls "$AM_EXTRA_SOURCES" > "$AMDATADIR"/am-extras
465455
for tp_list in $third_party_lists; do
466456
rm -f "$AMDATADIR"/"$ARCH"-"$tp_list"
467457
tprepo_readme="${tp_list}_readme"

0 commit comments

Comments
 (0)