diff --git a/build-tools/stx/dsc_depend.py b/build-tools/stx/dsc_depend.py index d7a8fa70..83fbcf6d 100644 --- a/build-tools/stx/dsc_depend.py +++ b/build-tools/stx/dsc_depend.py @@ -47,7 +47,7 @@ def get_aptcache(rootdir): `apt update` for specified Debian repositories. ''' if USE_HOST_RESOURCE: - apt_cache = apt.Cache() + apt_cache = apt.Cache(rootdir='/') return apt_cache try: if os.path.exists(rootdir):