From bddfb483a111a61f1ce167c173dc5dbd7f290114 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Mon, 19 Apr 2021 17:45:32 +0900 Subject: [PATCH] trivial fix to make it buildable --- google-noto-fonts.spec | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/google-noto-fonts.spec b/google-noto-fonts.spec index a1114fd..4f89d6f 100644 --- a/google-noto-fonts.spec +++ b/google-noto-fonts.spec @@ -815,11 +815,15 @@ end rpm.define("noto_fcconflist " .. _fcconflist) rpm.define("noto_metafilelist " .. _metafilelist) local f = io.open("debug-noto-fcconf-build.sh", "w") -f:write(_fcconfbuild) -f:close() +if f then + f:write(_fcconfbuild) + f:close() +end local f = io.open("debug-noto-metainfo-build.sh", "w") -f:write(_metainfobuild) -f:close() +if f then + f:write(_metainfobuild) + f:close() +end rpm.define("notobuild_fcconf " .. _fcconfbuild .. "\n") rpm.define("notobuild_metainfo " .. _metainfobuild .. "\n") } ## end of lua