Wait a sec before snapshot

This commit is contained in:
Ciaran Gultnieks 2013-07-31 17:39:56 +01:00
parent 7f43aa376b
commit 73c3a78fc6
2 changed files with 108 additions and 96 deletions

View file

@ -147,6 +147,8 @@ def build_server(app, thisbuild, vcs, build_dir, output_dir, sdk_path, force):
print "Saving clean state of new build server"
if subprocess.call(['vagrant', 'suspend'], cwd='builder') != 0:
raise BuildException("Failed to suspend build server")
print "...waiting a sec..."
time.sleep(10)
if subprocess.call(['VBoxManage', 'snapshot', get_builder_vm_id(), 'take', 'fdroidclean'],
cwd='builder') != 0:
raise BuildException("Failed to take snapshot")

View file

@ -220,6 +220,8 @@ def main():
help="Check only the specified package")
parser.add_option("--auto", action="store_true", default=False,
help="Process auto-updates")
parser.add_option("--autoonly", action="store_true", default=False,
help="Only process apps with auto-updates")
parser.add_option("--commit", action="store_true", default=False,
help="Commit changes")
(options, args) = parser.parse_args()
@ -235,6 +237,14 @@ def main():
sys.exit(1)
for app in apps:
process = True
if options.autoonly and app['Auto Update Mode'] == 'None':
process = False
if process:
print "Processing " + app['id'] + '...'
writeit = False