summaryrefslogtreecommitdiff
path: root/apply/state.py
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2022-11-10 09:09:54 +0100
committerJulian T <julian@jtle.dk>2022-11-10 09:10:25 +0100
commitd1ec4b3494274dcb7e1d9594cbb8d6ccd8bd0e63 (patch)
treeab0710ea83e212d099df8f0c166a6991ee31036b /apply/state.py
parent9e96a8789b2d165d484103e36faec5ab169a468b (diff)
Emacs and fix bug in apply
Diffstat (limited to 'apply/state.py')
-rw-r--r--apply/state.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/apply/state.py b/apply/state.py
index 12440a6..2e9205c 100644
--- a/apply/state.py
+++ b/apply/state.py
@@ -58,6 +58,8 @@ class FileState(Enum):
dest = Path(os.readlink(str(path)))
if Path.cwd() in dest.parents:
return FileState.create_owned(dest)
+ else:
+ return FileState.Used
if not path.exists():
return FileState.Unused