move make_binary_transparency_log to btlog

This keeps the code more organized, and reduces the number of things that
are loaded for every command via common.
This commit is contained in:
Hans-Christoph Steiner 2017-04-03 16:02:07 +02:00
parent 896c6496b4
commit 40290fc5e0
3 changed files with 104 additions and 103 deletions

View file

@ -37,6 +37,7 @@ from binascii import hexlify
from PIL import Image
import logging
from . import btlog
from . import common
from . import index
from . import metadata
@ -1408,7 +1409,7 @@ def main():
index.make(apps, sortedids, archapks, repodirs[1], True)
if config.get('binary_transparency_remote'):
common.make_binary_transparency_log(repodirs)
btlog.make_binary_transparency_log(repodirs)
if config['update_stats']:
# Update known apks info...