summaryrefslogtreecommitdiffstats
path: root/linhes/linhes-dev/mp.py
diff options
context:
space:
mode:
Diffstat (limited to 'linhes/linhes-dev/mp.py')
-rwxr-xr-xlinhes/linhes-dev/mp.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/linhes/linhes-dev/mp.py b/linhes/linhes-dev/mp.py
index f415b29..f8d660b 100755
--- a/linhes/linhes-dev/mp.py
+++ b/linhes/linhes-dev/mp.py
@@ -1,6 +1,7 @@
#!/usr/bin/env python
-# Version 3.0.2
+# Version 3.0.3
import os
+import stat
import sys
import re
import subprocess
@@ -304,6 +305,15 @@ class Packagefile(object):
self.set_srcpkg()
self.pkgrel_incremented = True
+ def runPreFlight(self):
+ if os.path.isfile("mp_preflight"):
+ print("- Running PreFlight...")
+ os.chmod("mp_preflight", 0o755)
+ retcode = subprocess.call(["./mp_preflight"])
+ if retcode != 0:
+ print(" ERROR: PreFlight Error")
+ print("")
+
def updateSUMS(self):
print("- Updating checksums...")
retcode = subprocess.call(["updpkgsums"])
@@ -520,6 +530,7 @@ def main():
packagefile.find_repo()
packagefile.increase_pkgrel()
+ packagefile.runPreFlight()
packagefile.print_vars()
packagefile.updateSUMS()
if packagefile.make_package():