当前运行的代码是:
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:使用symlink文件时,stat会失败。
我想添加一些y是否为symlink的检查。
lstat解决了系统错误的问题,但总体上还没有结束
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我想过滤这些文件,所以我需要知道哪些是符号链接。
发布于 2012-10-15 22:04:46
https://stackoverflow.com/questions/12890762
复制相似问题