Remove symlink touch
Nothing uses it any more, so remove it. R=thestig Bug: None Change-Id: Ic5f005c133fd386a595c3e836ef820b597546697 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5601415 Auto-Submit: Thomas Anderson <thomasanderson@chromium.org> Commit-Queue: Thomas Anderson <thomasanderson@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org> Cr-Commit-Position: refs/heads/main@{#1311020}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
e268a95934
commit
1c9a30e4e1
@ -22,9 +22,6 @@ template("symlink") {
|
||||
rebase_path(invoker.source, get_path_info(invoker.output, "dir")),
|
||||
rebase_path(invoker.output, root_build_dir),
|
||||
]
|
||||
if (defined(invoker.touch) && invoker.touch) {
|
||||
args += [ "--touch=" + rebase_path(invoker.source, root_build_dir) ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
# found in the LICENSE file.
|
||||
|
||||
description = """
|
||||
Make a symlink and optionally touch a file (to handle dependencies).
|
||||
Make a symlink.
|
||||
"""
|
||||
usage = "%prog [options] source[ source ...] linkname"
|
||||
epilog = """\
|
||||
@ -29,7 +29,6 @@ def Main(argv):
|
||||
parser = optparse.OptionParser(usage=usage, description=description,
|
||||
epilog=epilog)
|
||||
parser.add_option('-f', '--force', action='store_true')
|
||||
parser.add_option('--touch')
|
||||
|
||||
options, args = parser.parse_args(argv[1:])
|
||||
if len(args) < 2:
|
||||
@ -82,11 +81,5 @@ def Main(argv):
|
||||
raise
|
||||
|
||||
|
||||
if options.touch:
|
||||
os.makedirs(os.path.dirname(options.touch), exist_ok=True)
|
||||
with open(options.touch, 'a'):
|
||||
os.utime(options.touch)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(Main(sys.argv))
|
||||
|
Reference in New Issue
Block a user