From e8f0e030432bf7fda850a90327ae108f4b95081a Mon Sep 17 00:00:00 2001 From: John Cote Date: Fri, 11 Jan 2019 03:38:56 -0500 Subject: [PATCH] makepackage: Don't include deploy-stub when building .rpm Attempting to include deploy-stub in the .rpm would cause rpmbuild to fail, as deploy-stub isn't present. Closes #527 --- makepanda/makepackage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/makepanda/makepackage.py b/makepanda/makepackage.py index ed20117d10..31a45a2bb9 100755 --- a/makepanda/makepackage.py +++ b/makepanda/makepackage.py @@ -438,7 +438,8 @@ def MakeInstallerLinux(version, debversion=None, rpmrelease=1, runtime=False, # Add the binaries in /usr/bin explicitly to the spec file for base in os.listdir(outputdir + "/bin"): - txt += "/usr/bin/%s\n" % (base) + if not base.startswith("deploy-stub"): + txt += "/usr/bin/%s\n" % (base) # Write out the spec file. txt = txt.replace("VERSION", version)