Message ID | d5859ed9dbb0c78e9e643ba43732944afb314dd5.1690739937.git.steve@sakoman.com |
---|---|
State | Accepted, archived |
Commit | 392f60b0aa775ce95c3494ae87551e7954c9925b |
Headers | show |
Series | [kirkstone,01/30] libjpeg-turbo: patch CVE-2023-2804 | expand |
diff --git a/meta/recipes-core/systemd/systemd-systemctl/systemctl b/meta/recipes-core/systemd/systemd-systemctl/systemctl index c8b5c9efe3..0fd7e24085 100755 --- a/meta/recipes-core/systemd/systemd-systemctl/systemctl +++ b/meta/recipes-core/systemd/systemd-systemctl/systemctl @@ -191,7 +191,7 @@ class SystemdUnit(): try: for dependent in config.get('Install', prop): # expand any %i to instance (ignoring escape sequence %%) - dependent = re.sub("([^%](%%)*)%i", "\\1{}".format(instance), dependent) + dependent = re.sub("([^%](%%)*)%i", "\\g<1>{}".format(instance), dependent) wants = systemdir / "{}.{}".format(dependent, dirstem) / service add_link(wants, target)