More probing, unify python code.

This commit is contained in:
Jelmer Vernooij 2021-03-17 16:29:02 +00:00
parent b15dbe7c02
commit 703d1cda94
No known key found for this signature in database
GPG key ID: 579C160D4C9E23E8
4 changed files with 87 additions and 97 deletions

View file

@ -17,8 +17,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
import logging
import re
from typing import List, Optional, Set
from typing import List, Optional
import os
from buildlog_consultant.apt import (

View file

@ -145,7 +145,7 @@ def load_apt_cache_file(url, cache_dir):
p = os.path.join(cache_dir, fn + ext)
if not os.path.exists(p):
continue
#return os.popen('/usr/lib/apt/apt-helper cat-file %s' % p)
# return os.popen('/usr/lib/apt/apt-helper cat-file %s' % p)
logging.debug("Loading cached contents file %s", p)
if ext == '.lz4':
import lz4.frame