fix(localrepo): Exact local package match, no .old on medium, rebuild on bump
- tests: match localrepo packages by exact name (foo no longer satisfied by foo-bar-*.pkg.tar.zst). - update.sh: copy the db/files by name so repo-add's *.old backups stay off the medium. - build-end4-deps.sh: rebuild a local PKGBUILD when it is newer than the built package (a quickshell _commit bump used to be skipped). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
699ed6a935
commit
025082a92f
@@ -59,8 +59,12 @@ build_local_pkgbuild() {
|
||||
local pkg_name
|
||||
pkg_name=$(basename "${pkg_dir}")
|
||||
|
||||
if ls "${REPO_DIR}"/illogical-impulse-"${pkg_name}"-*.pkg.tar.zst 1>/dev/null 2>&1; then
|
||||
info "Package already exists in localrepo, skipping: ${pkg_name}"
|
||||
# Skip only while a built package is newer than its PKGBUILD - bumping
|
||||
# e.g. quickshell's _commit must trigger a rebuild, not ship the old one.
|
||||
if [[ -n "$(find "${REPO_DIR}" -maxdepth 1 \
|
||||
-name "illogical-impulse-${pkg_name}-*.pkg.tar.zst" \
|
||||
-newer "${pkg_dir}/PKGBUILD" -print -quit)" ]]; then
|
||||
info "Package up to date in localrepo, skipping: ${pkg_name}"
|
||||
return 0
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user