index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
author | Jelle van der Waa <jelle@archlinux.org> | 2023-07-21 16:04:17 +0200 |
---|---|---|
committer | Levente Polyak <anthraxx@archlinux.org> | 2023-09-04 23:41:00 +0200 |
commit | 8190a22480ac6d808b9d648f87e89be4a01926ef (patch) | |
tree | 8ae375a6a9d88b4aa122b08c35e28f1d28963ffc /src/commitpkg.in | |
parent | f31ea3a48ebea33f85bcd682c72848cadebb7ad1 (diff) |
-rw-r--r-- | src/commitpkg.in | 13 |
diff --git a/src/commitpkg.in b/src/commitpkg.in index 108fe81..f979d61 100644 --- a/src/commitpkg.in +++ b/src/commitpkg.in @@ -7,6 +7,7 @@ _DEVTOOLS_LIBRARY_DIR=${_DEVTOOLS_LIBRARY_DIR:-@pkgdatadir@} source "${_DEVTOOLS_LIBRARY_DIR}"/lib/common.sh source /usr/share/makepkg/util/util.sh +source /usr/share/makepkg/srcinfo.sh check_pkgbuild_validity() { @@ -177,13 +178,11 @@ done # check for PKGBUILD standards check_pkgbuild_validity -# auto generate .SRCINFO if present -if [[ -f .SRCINFO ]]; then - stat_busy 'Generating .SRCINFO' - makepkg --printsrcinfo > .SRCINFO - git add .SRCINFO - stat_done -fi +# auto generate .SRCINFO +stat_busy 'Generating .SRCINFO' +write_srcinfo_content > .SRCINFO +git add --force .SRCINFO +stat_done if [[ -n $(git status --porcelain --untracked-files=no) ]]; then stat_busy 'Staging files' |