1
0
mirror of https://github.com/mbirth/tcl_ota_check.git synced 2024-09-19 22:33:25 +01:00

add defaultparser to gapfill, uploader

This commit is contained in:
thurask 2018-06-11 22:40:49 -04:00
parent 42a8c5653b
commit d5b5c94f42
No known key found for this signature in database
GPG Key ID: A6CCCDEA29795048
2 changed files with 19 additions and 0 deletions

View File

@ -6,14 +6,24 @@
"""Query existence of missing OTAs."""
import json
import sys
import requests
from tcllib import argparser
from tcllib.devices import MobileDevice
from tcllib.dumpmgr import write_info_if_dumps_found
from tcllib.requests import CheckRequest, RequestRunner, ServerVoteSelector
dpdesc = """
Queries the database server for known versions and tries to find OTA files not yet in the database.
"""
dp = argparser.DefaultParser(__file__, dpdesc)
args = dp.parse_args(sys.argv[1:])
del args
# 1. Fetch list of missing OTAs (e.g. from ancient versions to current)
# 2. Query updates from FOTA servers (and store XML)
# (3. Upload will be done manually with upload_logs.py)

View File

@ -9,9 +9,18 @@
import glob
import os
import sys
import requests
from tcllib import argparser
dpdesc = """
Uploads contents of logs folder to remote database.
"""
dp = argparser.DefaultParser(__file__, dpdesc)
args = dp.parse_args(sys.argv[1:])
del args
# This is the URL to an installation of https://github.com/mbirth/tcl_update_db
UPLOAD_URL = "https://tclota.birth-online.de/"