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
This commit is contained in:
John Cote 2019-01-11 03:38:56 -05:00 committed by rdb
parent e1e5b907c1
commit e8f0e03043

View File

@ -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)