Compare commits

...

4 Commits

Author SHA1 Message Date
41c90f8d49 iso services: use dinitctl instead of symlinks
All checks were successful
Artools shellcheck / lint (push) Successful in 1m2s
2025-08-15 20:50:54 +02:00
c97a0cdd59 artixpkg repo import: show git diff with -n flag
All checks were successful
Artools shellcheck / lint (push) Successful in 31s
2025-06-28 14:55:24 +02:00
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
4 changed files with 18 additions and 3 deletions

View File

@@ -62,7 +62,7 @@ add_svc_dinit(){
for svc in $names; do
if [[ -d $mnt/etc/dinit.d/boot.d ]]; then
msg2 "Setting %s: [%s]" "${INITSYS}" "$svc"
chroot "$mnt" ln -s ../"$svc" /etc/dinit.d/boot.d/"$svc" &>/dev/null
chroot "$mnt" dinitctl enable -o "$svc" &>/dev/null
fi
done
}

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

@@ -61,8 +61,6 @@ patch_pkgbase(){
fi
done
fi
git --no-pager diff PKGBUILD
}
artixpkg_repo_import_usage() {
@@ -199,6 +197,7 @@ artixpkg_repo_import() {
msg2 "Patching ${pkgbase} ..."
patch_pkgbase "${pkgbase}"
fi
git --no-pager diff PKGBUILD
fi
)
fi

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