Selaa lähdekoodia

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
John Cote 7 vuotta sitten
vanhempi
sitoutus
e8f0e03043
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      makepanda/makepackage.py

+ 2 - 1
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)