current running code is:
for y in checkdirlist:
if (y in no_exec or y.endswith(".ebuild")) and \
stat.S_IMODE(os.stat(os.path.join(checkdir, y)).st_mode) & 0o111:
and stat fails with symlink files.
I want to add some check if y is symlink or not.
lstat
solves the problem with system error but it's not over in general
Traceback (most recent call last):
File "/usr/bin/repoman", line 1385, in <module>
myaux = dict(zip(allvars, portdb.aux_get(cpv, allvars)))
File "/usr/lib/portage/pym/portage/dbapi/porttree.py", line 435, in aux_get
myebuild, mylocation = self.findname2(mycpv, mytree)
File "/usr/lib/portage/pym/portage/dbapi/porttree.py", line 308, in findname2
raise InvalidPackageName(mycpv)
portage.exception.InvalidPackageName: dev-haskell/.#hakyll-9999
I want to filter those files so I need to know which ones are symlinks.