Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Silbe <sascha.silbe@caravan.local>2010-10-05 17:10:32 (GMT)
committer Sascha Silbe <sascha.silbe@caravan.local>2010-10-05 17:10:32 (GMT)
commitafc3790b7f36c52be6fa33ebf0834b6c3ba28573 (patch)
treea35c1bd82cb4615e89153aa704d0c5fa370de43c
parentdca14e6fd618039dbfc7c39f8bfa93d5e37eedf5 (diff)
parent616efd38624b38beb3cacb35e3eb999ae54bbb86 (diff)
Merge branch 't/query-typed-props' into refs/top-bases/t/timestamp-range-query-fix
-rw-r--r--NEWS3
-rw-r--r--configure.ac2
-rw-r--r--src/carquinyol/filestore.py8
3 files changed, 12 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 3ce3812..c2de4ed 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+v0.90.0 2010-09-29
+* Do not store symlinks #2362
+
v0.89.4 2010-09-11
* metadata-only update sets filesize property to 0 #2229
* commit 3644fac reintroduced race condition, broke test suite #2104
diff --git a/configure.ac b/configure.ac
index b50b88d..cf72e11 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
-AC_INIT([sugar-datastore],[0.89.4],[],[sugar-datastore])
+AC_INIT([sugar-datastore],[0.90.0],[],[sugar-datastore])
AC_PREREQ([2.59])
diff --git a/src/carquinyol/filestore.py b/src/carquinyol/filestore.py
index 9724397..9eb975f 100644
--- a/src/carquinyol/filestore.py
+++ b/src/carquinyol/filestore.py
@@ -43,6 +43,14 @@ class FileStore(object):
if file_path:
if not os.path.isfile(file_path):
raise ValueError('No file at %r' % file_path)
+
+ if os.path.islink(file_path):
+ # Can't keep symlinks (especially pointed to removable medias).
+ # Later, optimizer will help with saving duplicates
+ file_path = os.path.realpath(file_path)
+ # We should not move original file
+ transfer_ownership = False
+
if transfer_ownership:
try:
logging.debug('FileStore moving from %r to %r', file_path,