Replace scheduled AUR imports with direct upstream watches
This commit is contained in:
1 parent
f26a60aef7
commit
b34de5c29e
115 files changed
+2155
-1242
No files matched your search
@@ -9,6 +9,7 @@ source "$BUILD_ROOT/helpers/upstream-github.sh"
|
||||
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
trap 'rm -rf "$TEMP_DIR"' EXIT
|
||||
export UPSTREAM_CACHE_DIR="$TEMP_DIR/watch-cache"
|
||||
|
||||
SPECIFIC_PACKAGES=()
|
||||
|
||||
@@ -332,6 +333,12 @@ sync_package() {
|
||||
return 0
|
||||
fi
|
||||
|
||||
if jq -e '.sync == false' "$package_dir/.omarchy/package.json" >/dev/null 2>&1; then
|
||||
print_info "Skipping $package: upstream updates held by sync=false"
|
||||
((++SKIPPED))
|
||||
return 0
|
||||
fi
|
||||
|
||||
local provider has_upstream=false
|
||||
provider=$(package_upstream_provider "$package_dir")
|
||||
if package_has_upstream_provider "$package_dir"; then
|
||||
@@ -372,6 +379,21 @@ sync_package() {
|
||||
|
||||
print_info "Checking $package for upstream releases..."
|
||||
|
||||
if [[ "$provider" == watch ]]; then
|
||||
local result
|
||||
if ! result=$(python3 "$BUILD_ROOT/helpers/upstream-watch.py" sync "$package_dir" --min-age "$min_age"); then
|
||||
print_error "Upstream watch failed for $package"
|
||||
((++FAILED))
|
||||
elif [[ $(jq -r .status <<<"$result") == updated ]]; then
|
||||
print_success " $(jq -r '.before + " -> " + .after' <<<"$result")"
|
||||
((++UPDATED))
|
||||
else
|
||||
print_info " $(jq -r '.reason' <<<"$result")"
|
||||
((++SKIPPED))
|
||||
fi
|
||||
return 0
|
||||
fi
|
||||
|
||||
local release release_status=0
|
||||
if [[ -n "$provider" ]]; then
|
||||
case "$provider" in
|
||||
|
||||
Reference in new issue
Block a user