mirror of
https://github.com/mbirth/tcl_ota_check.git
synced 2024-11-09 22:06:47 +00:00
add defaultparser to gapfill, uploader
This commit is contained in:
parent
42a8c5653b
commit
d5b5c94f42
@ -6,14 +6,24 @@
|
|||||||
"""Query existence of missing OTAs."""
|
"""Query existence of missing OTAs."""
|
||||||
|
|
||||||
import json
|
import json
|
||||||
|
import sys
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
|
from tcllib import argparser
|
||||||
from tcllib.devices import MobileDevice
|
from tcllib.devices import MobileDevice
|
||||||
from tcllib.dumpmgr import write_info_if_dumps_found
|
from tcllib.dumpmgr import write_info_if_dumps_found
|
||||||
from tcllib.requests import CheckRequest, RequestRunner, ServerVoteSelector
|
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)
|
# 1. Fetch list of missing OTAs (e.g. from ancient versions to current)
|
||||||
# 2. Query updates from FOTA servers (and store XML)
|
# 2. Query updates from FOTA servers (and store XML)
|
||||||
# (3. Upload will be done manually with upload_logs.py)
|
# (3. Upload will be done manually with upload_logs.py)
|
||||||
|
@ -9,9 +9,18 @@
|
|||||||
|
|
||||||
import glob
|
import glob
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
import requests
|
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
|
# This is the URL to an installation of https://github.com/mbirth/tcl_update_db
|
||||||
UPLOAD_URL = "https://tclota.birth-online.de/"
|
UPLOAD_URL = "https://tclota.birth-online.de/"
|
||||||
|
Loading…
Reference in New Issue
Block a user