only include .SRCINFO comments in source tarball
This avoids introducing unnecessary changes to the time stamp into package repositories that regularly use --printsrcinfo to update the .SRCINFO file. Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
83c7dc80cb
commit
f63854fa96
|
@ -1080,11 +1080,13 @@ srcinfo_write_package() {
|
||||||
srcinfo_close_section
|
srcinfo_close_section
|
||||||
}
|
}
|
||||||
|
|
||||||
write_srcinfo() {
|
write_srcinfo_header() {
|
||||||
local pkg
|
|
||||||
|
|
||||||
printf "# Generated by makepkg %s\n" "$makepkg_version"
|
printf "# Generated by makepkg %s\n" "$makepkg_version"
|
||||||
printf "# %s\n" "$(LC_ALL=C date -u)"
|
printf "# %s\n" "$(LC_ALL=C date -u)"
|
||||||
|
}
|
||||||
|
|
||||||
|
write_srcinfo_content() {
|
||||||
|
local pkg
|
||||||
|
|
||||||
srcinfo_write_global
|
srcinfo_write_global
|
||||||
|
|
||||||
|
@ -1093,6 +1095,11 @@ write_srcinfo() {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
write_srcinfo() {
|
||||||
|
write_srcinfo_header
|
||||||
|
write_srcinfo_content
|
||||||
|
}
|
||||||
|
|
||||||
write_pkginfo() {
|
write_pkginfo() {
|
||||||
local builddate=$(date -u "+%s")
|
local builddate=$(date -u "+%s")
|
||||||
if [[ -n $PACKAGER ]]; then
|
if [[ -n $PACKAGER ]]; then
|
||||||
|
@ -2090,7 +2097,7 @@ if (( PACKAGELIST )); then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if (( PRINTSRCINFO )); then
|
if (( PRINTSRCINFO )); then
|
||||||
write_srcinfo
|
write_srcinfo_content
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue