In package y, I need to use the WAPT.download_upgrades() method to update another package x (upgrade to version n+1 of package x installed in version n) and then install it with WAPT.install(x).
However, this doesn't work. During the installation of package y (no error, the package installs correctly), the machine doesn't download the latest version (n+1) of package x and therefore doesn't install it. It remains with version n of package x. I don't understand why, given that version n+1 of package x is available on the WAPT server, and that the machine's agent is correctly configured to retrieve packages from the WAPT server. It's not a problem with the maturity of package x either (the problem occurs regardless of its maturity). Furthermore, if I select the machine in the console, then click "Check for updates" and select "And download packages," the machine does download version n+1 of package x. (Below, this "package x" is "col73-xmind"; I want to update and install it within the installation of another package.)
Here are the corresponding lines of code:
Code: Select all
WAPT.download_upgrades()
for p in WAPT.installed(include_errors=True):
if p.package == 'col73-xmind':
WAPT.install('col73-xmind')
Where could the problem be coming from?
