mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
Wait a sec before snapshot
This commit is contained in:
parent
7f43aa376b
commit
73c3a78fc6
2 changed files with 108 additions and 96 deletions
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue