summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Fischer <d.f.fischer@web.de>2016-02-20 18:35:47 +0100
committerAllan McRae <allan@archlinux.org>2016-02-21 17:10:11 +1000
commitf63854fa96f658ca5bdf2c21a1cd33cf4e3fbdbd (patch)
treee6d6b6ec93dbff76cccaa22cc93702be09bf1761
parent83c7dc80cba7c9818f0ceba7ff6382fef873818f (diff)
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>
-rw-r--r--scripts/makepkg.sh.in15
1 files changed, 11 insertions, 4 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 29ccaadc..b888b8da 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1080,11 +1080,13 @@ srcinfo_write_package() {
srcinfo_close_section
}
-write_srcinfo() {
- local pkg
-
+write_srcinfo_header() {
printf "# Generated by makepkg %s\n" "$makepkg_version"
printf "# %s\n" "$(LC_ALL=C date -u)"
+}
+
+write_srcinfo_content() {
+ local pkg
srcinfo_write_global
@@ -1093,6 +1095,11 @@ write_srcinfo() {
done
}
+write_srcinfo() {
+ write_srcinfo_header
+ write_srcinfo_content
+}
+
write_pkginfo() {
local builddate=$(date -u "+%s")
if [[ -n $PACKAGER ]]; then
@@ -2090,7 +2097,7 @@ if (( PACKAGELIST )); then
fi
if (( PRINTSRCINFO )); then
- write_srcinfo
+ write_srcinfo_content
exit 0
fi