Page 1 of 1
[SOLVED] Forgetting packages
Published: April 5, 2022 - 4:46 PM
by Renaud Villet
Hello,
in order to prepare for a Wapt server change, I would like to create a package that would forget all the packages provided by the old server that have the same prefix, different from the prefix of the new server...
Thank you for your help.
Re: Forgetting packages
Published: April 6, 2022 - 4:06 PM
by dcardon
Hello Renaud,
WAPT version?
In install(), you can use the implicit WAPT object (code to test)
Code: Select all
def install():
package_list = WAPT.list()
for package_entry in package_list:
if package_entry.package.startswith('tis'):
WAPT.forget(package_entry.package)
Sincerely,
Denis
Re: Forgetting packages
Published: April 7, 2022 - 9:02 AM
by Renaud Villet
Hello
, it works, but with:
WAPT.forget_packages(package_entry.package)
instead of:
WAPT.forget(package_entry.package)
Thank you very much!
Re: Forgetting packages
Published: April 7, 2022 - 3:27 PM
by dcardon
Hello Renaud,
Renaud Villet wrote: ↑Apr 7, 2022 - 09:02
It works, but with:
WAPT.forget_packages(package_entry.package)
instead of:
WAPT.forget(package_entry.package)
Sorry for the typo, there is no WAPT autocompletion in phpBB yet
Good day,
Denis