Closed marcelloromani closed 9 years ago
I pondered this for a while and did something simpler - if we call apt-get update in the build then we switch off do_update. I'm not sure this is perfect but seems good enough and passes testing.
It could be convenient to add some sort of "update packages" api to ShutIt, which would take care of remembering if we already called it and manage the commands for the specific target type (i.e. apt and yum).
Just a thought. I might draft something myself if I have time.
apt-get update
is called once inget_distro_info()
https://github.com/ianmiell/shutit/blob/master/shutit_global.py#L1771and then in setup.py,
setup
module: https://github.com/ianmiell/shutit/blob/master/setup.py#L534 https://github.com/ianmiell/shutit/blob/master/setup.py#L547 https://github.com/ianmiell/shutit/blob/master/setup.py#L548I think the call in
setup:build()
is triggereddo_update
beingyes
by default: https://github.com/ianmiell/shutit/blob/master/util.py#L135 changin it tono
fixed the issue.