summarylogtreecommitdiffstats
path: root/expire-from-source-date-epoch.patch
diff options
context:
space:
mode:
authorSkycoder422020-01-24 14:51:31 +0100
committerSkycoder422020-01-24 14:51:31 +0100
commitbb2ee1e772d142fcdcb62ea5438d3c818452baca (patch)
tree2cb32a76ff5c158bce342730dfeccfd16ddb421d /expire-from-source-date-epoch.patch
parentd129208652519f3bb686619cdf70b0e952c957a3 (diff)
downloadaur-bb2ee1e772d142fcdcb62ea5438d3c818452baca.tar.gz
updated to 1.30.0
Diffstat (limited to 'expire-from-source-date-epoch.patch')
-rw-r--r--expire-from-source-date-epoch.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/expire-from-source-date-epoch.patch b/expire-from-source-date-epoch.patch
new file mode 100644
index 000000000000..7ef3ec08d38c
--- /dev/null
+++ b/expire-from-source-date-epoch.patch
@@ -0,0 +1,13 @@
+--- a/Gruntfile.js
++++ b/Gruntfile.js
+@@ -203,9 +203,7 @@ module.exports = grunt => {
+ });
+
+ grunt.registerTask('getExpireTime', () => {
+- grunt.task.requires('gitinfo');
+- const gitinfo = grunt.config.get('gitinfo');
+- const committed = gitinfo.local.branch.current.lastCommitTime;
++ const committed = parseInt(process.env.SOURCE_DATE_EPOCH, 10) * 1000;
+ const time = Date.parse(committed) + 1000 * 60 * 60 * 24 * 90;
+ grunt.file.write(
+ 'config/local-production.json',