I would like to be able to modify the "control" file of the machine package within a WAPT package.
For now, I am able to display it.
Here is the code that displays it:
Code: Select all
def install():
w = common.Wapt()
package = PackageEntry(w.host_uuid)
# Récupère les fichiers control de tous les paquets présent sur la machine
package_version = package.get("package_uuid")
l = w.list()
# Parcours ces fichiers
for elt in l:
# Si le nom du paquet est celui du paquet machine on l'affiche
if elt["package"] == w.host_uuid:
print(elt)
I tried this:
Code: Select all
elt["depends"] = None
I also couldn't find where this file is stored on the machine.
Do you have any idea how to do it?
