Running update before install

pull/5/head
Nicolas Arenas 2024-11-26 00:58:15 +01:00
parent 3abcad9776
commit d6a3c4205b
1 changed files with 1 additions and 0 deletions

View File

@ -62,4 +62,5 @@ def install (pkgs, opts={}):
for k in opts: opts_list += ['-o', f'{k}={opts[k]}']
print ('about to install these packages: "{}"'.format (' '.join (pkgs)))
import subprocess
subprocess.run (['apt-get', '--yes', 'update'])
subprocess.run (['apt-get', '--yes', 'install'] + pkgs + opts_list)