Compare commits

...

2 Commits

Author SHA1 Message Date
1ba16c45f9 artixpkg: fix removal by git add srcinfo.yaml
All checks were successful
Artools shellcheck / lint (push) Successful in 30s
2025-06-12 17:33:20 +02:00
95afc31152 artixpkg git: show repo db after pull
All checks were successful
Artools shellcheck / lint (push) Successful in 58s
2025-06-08 17:19:48 +02:00
2 changed files with 16 additions and 0 deletions

View File

@@ -7,6 +7,9 @@ ARTOOLS_INCLUDE_GIT_PULL_SH=1
set -e
# shellcheck source=src/lib/pkg/db/db.sh
source "${LIBDIR}"/pkg/db/db.sh
artixpkg_git_pull_usage() {
local -r COMMAND=${_ARTOOLS_COMMAND:-${BASH_SOURCE[0]##*/}}
@@ -123,6 +126,11 @@ artixpkg_git_pull() {
die 'failed to pull %s' "${pkgbase}"
fi
msg "Querying ${pkgbase} ..."
if ! show_db; then
warning "Could not query ${REPO_DB}"
fi
)
else
warning "Skip pulling ${pkgbase}: Directory does not exist"

View File

@@ -132,6 +132,14 @@ artixpkg_repo_remove() {
if [[ "$f" == "${REPO_DB}" ]]; then
git add "$f"
fi
if [[ "$f" == "${REPO_CI}" ]]; then
git add "$f"
fi
done
for f in $(git ls-files --others); do
if [[ "$f" == "${SRCINFO}" ]]; then
git add "$f"
fi
done
stat_done