Page 1 of 1

Packages cannot be removed

Published: June 12, 2015 - 08:58
by tjacquart
Hello,
After installing WAPT on a 2003 server, it works without any problems. I did some testing and tried creating packages with a prefix. However, I can no longer delete them from the repository, and I would like to know if it's possible to remove them. Note that right-clicking and selecting "delete from repository" doesn't work for these packages, but this functionality works for duplicate packages in the main repository.
I've included a screenshot of my error to help you understand the issue better:

Picture

Thank you for your attention to my problem.
Sincerely,
Thibault Jacquart

Re: Packages unable to be removed

Published: June 16, 2015 - 12:15
by rezidu
Hello,

the right-click "delete" option probably doesn't work due to the "." at the beginning of your prefix.

To remove them, go directly to your server and delete the packages there.

For a Windows server -> C:\wapt\waptserver\repository\wapt
For a Debian server -> I don't know the exact path, but it should be similar (perhaps in the "etc" file).

Re: Packages unable to be removed

Published: June 16, 2015 - 3:07 PM
by Clem_you
For your information, a "." before a filename is equivalent to "hiding" a file, so your problem with not being able to delete it probably stems from that.

On Debian, to delete a package manually, you need to navigate to the directory containing the .wapt files:
michel@srv-wapt:~# cd /var/www/wapt

then, to see the contents of the directory (including hidden files):
michel@srv-wapt:~# ls -a

and finally to delete the desired package:
michel@srv-wapt:~# rm .fwapt-packagetodelete.wapt

However, it is necessary to run the following Python command again:
michel@srv-wapt:~# python /opt/wapt/wapt-scanpackages.py /var/www/wapt/

This allows, I believe, an update of the WAPT console on its next startup; without this command, your package might still be visible in the console.

Have a good day,
Clément.