tests/readlink.py
author Pierre-Yves David <pierre-yves.david@logilab.fr>
Mon, 26 Nov 2012 19:26:24 +0100
changeset 17996 b3af182a1944
parent 10282 08a0f04b56bd
child 25660 328739ea70c3
permissions -rwxr-xr-x
clfilter: ensure that tag logic runs unfiltered The current tag logic is not aware of filtering. We keep the status quo, ensuring that the tag cache is computed as before: without any filtering.

#!/usr/bin/env python

import errno, os, sys

for f in sys.argv[1:]:
    try:
        print f, '->', os.readlink(f)
    except OSError, err:
        if err.errno != errno.EINVAL:
            raise
        print f, 'not a symlink'

sys.exit(0)