From: Lennart Poettering Date: Fri, 6 Oct 2017 18:08:06 +0000 (+0200) Subject: mkosi: minor prettification X-Git-Tag: v4~41^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F161%2Fhead;p=thirdparty%2Fmkosi.git mkosi: minor prettification There's no need to append an empty string if we have to conditionalize things anyway. --- diff --git a/mkosi b/mkosi index 0cd84528f..78466add0 100755 --- a/mkosi +++ b/mkosi @@ -2367,7 +2367,9 @@ def find_cache(args): if os.path.exists("mkosi.cache/"): args.cache_path = "mkosi.cache/" + args.distribution.name - args.cache_path += "~" + args.release if args.release is not None else "" + + if args.release is not None: + args.cache_path += "~" + args.release def find_build_script(args): if args.build_script is not None: