aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorJonas Gorski <jonas.gorski@gmail.com>2023-08-23 09:47:57 +0200
committerJo-Philipp Wich <jo@mein.io>2023-10-27 01:03:38 +0200
commitc4c9f6133178f7e36ec3193be97326bbd037bd44 (patch)
treed8ca134132e822b405ccb040d008b2619abe5fc6 /package
parent9eec4eb2684531ef146b9e4ff1a6c7545302fca9 (diff)
downloadupstream-c4c9f6133178f7e36ec3193be97326bbd037bd44.tar.gz
upstream-c4c9f6133178f7e36ec3193be97326bbd037bd44.tar.bz2
upstream-c4c9f6133178f7e36ec3193be97326bbd037bd44.zip
prereq: merge common cases in SetupHostCommand
Now that most cases do the same thing in SetupHostCommand, merge them together into one. To allow moving the generic symlink check, invert the check and let it check for relative links by matching on link targets that do not start with a slash. This then allows us to also drop the absolute link case, shortening the case statement further. This reorders the check to * if it is not a symlink, do not change it * if it is a symlink and it points to the found command, do not change it * if it is a symlink with a relative path, do not change it * else, update/replace it Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com> (cherry picked from commit 3210aa8e0a113cc4354628b08b608c5c8f792941)
Diffstat (limited to 'package')
0 files changed, 0 insertions, 0 deletions