Procházet zdrojové kódy

Microseconds removed from build date. Refs: #14.

Josef Templ před 10 roky
rodič
revize
0c94c077f9
1 změnil soubory, kde provedl 6 přidání a 5 odebrání
  1. 6 5
      appbuild/build.py

+ 6 - 5
appbuild/build_with_bbscript.py → appbuild/build.py

@@ -32,7 +32,7 @@
 from subprocess import Popen, PIPE, call
 from subprocess import Popen, PIPE, call
 import sys, datetime, fileinput, os.path, argparse
 import sys, datetime, fileinput, os.path, argparse
 
 
-buildDate = datetime.datetime.now().isoformat()
+buildDate = datetime.datetime.now().isoformat()[:19]
 buildDir = "/var/www/tribiq/makeapp"
 buildDir = "/var/www/tribiq/makeapp"
 bbName = "bb"
 bbName = "bb"
 bbDir = buildDir + "/" + bbName
 bbDir = buildDir + "/" + bbName
@@ -261,7 +261,7 @@ def incrementBuildNumber():
 def cleanup():
 def cleanup():
     if not args.test:
     if not args.test:
         logStep("Cleaning up")
         logStep("Cleaning up")
-        shellExec(buildDir, "rm -R " + bbDir)
+        shellExec(buildDir, "rm -R -f " + bbDir)
 
 
 def renameLog():
 def renameLog():
     if not args.test:
     if not args.test:
@@ -334,6 +334,7 @@ appendSystemProperties()
 updateBbscript()
 updateBbscript()
 buildSetupFile()
 buildSetupFile()
 buildZipFile()
 buildZipFile()
-incrementBuildNumber() # if not args.test
-cleanup() # if not args.test
-renameLog() # if not args.test
+# if not args.test
+incrementBuildNumber()
+cleanup()
+renameLog()