Compare commits

..

2 Commits

Author SHA1 Message Date
Caleb Maclennan
efeac8504d Merge branch 'update-checksums-on-edit' into 'master'
feat(build): update checksums when editing source files during build

See merge request archlinux/devtools!240
2025-07-27 08:33:46 +03:00
Caleb Maclennan
f2db03786a feat(build): update checksums when editing source files during build
Using the --edit option while doing a build frequently implies making
changes to the sources...whether it is updating a URL or dropping
obsolete patches or other changes. It isn't a 100% correlation of
course, but more often than not any changes made during editing are
*expected* to also update the checksums to be in sync.

Using the --pkgver option already triggers this, but other subsequent
edits do not making for frequent failed edit/build cycles.
2024-03-02 11:22:31 +03:00
4 changed files with 2 additions and 5 deletions

View File

@@ -150,7 +150,6 @@ _pkgctl_cmds=(
db
diff
issue
license
release
repo
search

View File

@@ -155,7 +155,7 @@ if (( ${#needsversioning[*]} )); then
if [[ ! -f "${file}" ]]; then
continue
fi
if ! git ls-files --error-unmatch "$file" >/dev/null; then
if ! git ls-files --error-unmatch "$file"; then
die "%s is not under version control" "$file"
fi
done

View File

@@ -196,6 +196,7 @@ pkgctl_build() {
;;
-e|--edit)
EDIT=1
UPDATE_CHECKSUMS=1
shift
;;
-o|--offload)

View File

@@ -188,13 +188,10 @@ path = [
"README.md",
"keys/**",
".SRCINFO",
".gitignore",
".nvchecker.toml",
"*.install",
"*.sysusers",
"*sysusers.conf",
"*.tmpfiles",
"*tmpfiles.conf",
"*.logrotate",
"*.pam",
"*.service",