Return the size of the apt cache (in bytes)
()
| 646 | |
| 647 | |
| 648 | def 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 | |
| 655 | def get_globs_size(paths): |