We have alot of symlinks in distfiles, like: ls -l xorg-server-1.1* lrwxrwxrwx 1 root root 56 Dec 17 2016 xorg-server-1.18.4.tar.bz2 -> /net/devsrv/portage/distfiles/xorg-server-1.18.4.tar.bz2 lrwxrwxrwx 1 root root 56 Sep 30 09:50 xorg-server-1.19.1.tar.bz2 -> /net/devsrv/portage/distfiles/xorg-server-1.19.1.tar.bz2 lrwxrwxrwx 1 root root 56 Mar 3 2017 xorg-server-1.19.2.tar.bz2 -> /net/devsrv/portage/distfiles/xorg-server-1.19.2.tar.bz2 lrwxrwxrwx 1 root root 56 Oct 5 16:39 xorg-server-1.19.4.tar.bz2 -> /net/devsrv/portage/distfiles/xorg-server-1.19.4.tar.bz2 lrwxrwxrwx 1 root root 56 Oct 13 17:01 xorg-server-1.19.5.tar.bz2 -> /net/devsrv/portage/distfiles/xorg-server-1.19.5.tar.bz2 eclean-dist -d will not rm old symlinks(or broken symlinks)
Extending _isreg_check(in search.py) with LNK test seems to do the trick: def _isreg_check_(file_stat, file): """check if file is a regular file.""" is_reg_file = stat.S_ISREG(file_stat[stat.ST_MODE]) is_lnk_file = stat.S_ISLNK(file_stat[stat.ST_MODE]) return not (is_reg_file or is_lnk_file), is_reg_file or is_lnk_file
Ping?
Sorry, I've been really busy, not had much time for any bugs. Thanks, I will try to get it applied soon.
ping ?
gentle ping ?
... ping ...
Same answer as last time... super busy, I don't have much time at all and way behind on other partially finished things. If you can please have a look at the code, make a patch, submit it. One of us will make the time to review/test it.
Created attachment 634346 [details, diff] Simple symlink rm patch This is my hack to get the jobs done. I don't really do python so this is the best I can do.