[elbe-devel] [PATCH v1 6/8] Fix 'touch' method of 'VirtApt' on broken link
dion at linutronix.de
dion at linutronix.de
Wed May 22 15:33:46 CEST 2019
From: Olivier Dion <dion at linutronix.de>
Signed-off-by: Olivier Dion <dion at linutronix.de>
---
elbepack/virtapt.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/elbepack/virtapt.py b/elbepack/virtapt.py
index e382c688..8be68b0a 100644
--- a/elbepack/virtapt.py
+++ b/elbepack/virtapt.py
@@ -159,7 +159,7 @@ class VirtApt(object):
if os.path.exists(fname):
os.utime(fname, None)
else:
- fp = open(fname, "w")
+ fp = open(os.path.realpath(fname), "w")
fp.close()
def initialize_dirs(self):
--
2.11.0
More information about the elbe-devel
mailing list