[RESOLVED] Package dependent on the result of the previous audit
Published: February 14, 2024 - 11:43 AM
Hello,
I'm updating a package and I wanted to condition an action on the status of the last existing audit (i.e., the version of the package installed on the machine). I'm having trouble retrieving this information.
The new version of the package is being tested using PyScripter on a machine where the previous version of the package is installed.
If I use `WAPT.audit(package)` in the new package, it executes the new `audit()` function of that package, which I modified, so it's not suitable.
I found the `packages_audit_inventory()` . The problem is that if I execute this function in the interpreter, I can retrieve the old audit status of the package, but when the `install()` function of the new package is executed, the list corresponding to the package returned by the `packages_audit_inventory()` function is modified beforehand, and its last three elements (including the status value) are set to `None`. Therefore, I can't retrieve the existing audit status of the package with this function either.
Is there a solution to retrieve the package's audit status?
I'm updating a package and I wanted to condition an action on the status of the last existing audit (i.e., the version of the package installed on the machine). I'm having trouble retrieving this information.
The new version of the package is being tested using PyScripter on a machine where the previous version of the package is installed.
If I use `WAPT.audit(package)` in the new package, it executes the new `audit()` function of that package, which I modified, so it's not suitable.
I found the `packages_audit_inventory()` . The problem is that if I execute this function in the interpreter, I can retrieve the old audit status of the package, but when the `install()` function of the new package is executed, the list corresponding to the package returned by the `packages_audit_inventory()` function is modified beforehand, and its last three elements (including the status value) are set to `None`. Therefore, I can't retrieve the existing audit status of the package with this function either.
Is there a solution to retrieve the package's audit status?