Running update before install
parent
3abcad9776
commit
d6a3c4205b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue