MCPcopy Create free account
hub / github.com/bleachbit/bleachbit / get_apt_size

Function get_apt_size

bleachbit/Unix.py:648–652  ·  view source on GitHub ↗

Return the size of the apt cache (in bytes)

()

Source from the content-addressed store, hash-verified

646
647
648def get_apt_size():
649 """Return the size of the apt cache (in bytes)"""
650 (_rc, stdout, _stderr) = General.run_external(['apt-get', '-s', 'clean'])
651 paths = re.findall(r'/[/a-z\.\*]+', stdout)
652 return get_globs_size(paths)
653
654
655def get_globs_size(paths):

Callers 2

test_get_apt_sizeMethod · 0.90
apt_cleanFunction · 0.85

Calls 1

get_globs_sizeFunction · 0.85

Tested by 1

test_get_apt_sizeMethod · 0.72