From 8c2ba2b0525832d67d64617d32a06a1c7415bf71 Mon Sep 17 00:00:00 2001 From: Ave Ozkal Date: Wed, 23 Jan 2019 02:44:18 +0300 Subject: [PATCH] customversion: add mutant standard disclaimer --- patches/customversion/addpatch.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/patches/customversion/addpatch.py b/patches/customversion/addpatch.py index 1d391ff..66d2688 100644 --- a/patches/customversion/addpatch.py +++ b/patches/customversion/addpatch.py @@ -25,9 +25,16 @@ except: hostname = socket.gethostname().split(".")[0] -customtext += ", built on {}@{} at {}".format(uname, - hostname, - timestamp) +disclaimers = "" + +if "mutant" in sys.argv: + disclaimers += " | This build uses Mutant Standard"\ + " emoji (https://mutant.tech)." + +customtext += ", built on {}@{} at {}{}".format(uname, + hostname, + timestamp, + disclaimers) # Replace the target string filedata = filedata.replace('with Cutthecord patches"',