mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 23:18:10 -05:00
Move running of git-restore-mtime to lib/fixup.rb and Simplify usage of @last_update_check (#12681)
* Move running of git-restore-mtime to lib/fixup.rb * Simplify usage of @last_update_check
This commit is contained in:
committed by
GitHub
parent
ea499756a2
commit
83587e5f3d
@@ -32,6 +32,11 @@ ARCH ||= %w[aarch64 armv8l].include?(KERN_ARCH) ? 'armv7l' : KERN_ARCH
|
||||
LIBC_VERSION ||= Etc.confstr(Etc::CS_GNU_LIBC_VERSION).split.last
|
||||
CREW_PACKAGES_PATH ||= File.join(CREW_LIB_PATH, 'packages')
|
||||
|
||||
# Commands run immediately after updating from git.
|
||||
|
||||
# Set the mtime on each file to the timestamp of the most recent commit that modified the file.
|
||||
system('git-restore-mtime -sq 2>/dev/null', chdir: CREW_LIB_PATH, exception: true) if File.file?("#{CREW_PREFIX}/bin/git-restore-mtime")
|
||||
|
||||
# Removing files/directories.
|
||||
|
||||
# Remove deprecated directory.
|
||||
|
||||
Reference in New Issue
Block a user