diff options
author | Edu4rdSHL | 2021-09-23 04:38:02 -0500 |
---|---|---|
committer | Edu4rdSHL | 2021-09-23 04:38:02 -0500 |
commit | bd524727020a0639c56d085133ec3554a4b365d2 (patch) | |
tree | 53fd7072d9d6919c495fcd0aece53bab524f5030 /expire-from-source-date-epoch.patch | |
parent | 5b41e5baa3c3afc2e083756e80aa4eb4c4e19b5d (diff) | |
download | aur-bd524727020a0639c56d085133ec3554a4b365d2.tar.gz |
Fix patch.
Signed-off-by: Edu4rdSHL <edu4rdshl@protonmail.com>
Diffstat (limited to 'expire-from-source-date-epoch.patch')
-rw-r--r-- | expire-from-source-date-epoch.patch | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/expire-from-source-date-epoch.patch b/expire-from-source-date-epoch.patch index d29c79835179..a4d698623ba2 100644 --- a/expire-from-source-date-epoch.patch +++ b/expire-from-source-date-epoch.patch @@ -1,6 +1,6 @@ ---- a/Gruntfile.js -+++ b/Gruntfile.js -@@ -203,9 +203,7 @@ module.exports = grunt => { +--- a/Gruntfile.js 2021-09-23 04:25:41.069024593 -0500 ++++ b/Gruntfile.js 2021-09-23 04:26:20.878766965 -0500 +@@ -171,9 +171,7 @@ }); grunt.registerTask('getExpireTime', () => { @@ -8,6 +8,6 @@ - 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; + const buildCreation = Date.parse(committed); + const buildExpiration = buildCreation + 1000 * 60 * 60 * 24 * 90; grunt.file.write( - 'config/local-production.json', |