[f-spot] Fix regression on importing same photo uris



commit 4150d1c59051081b699bf5069724dc763d8eabc9
Author: Lorenzo Milesi <maxxer yetopen it>
Date:   Thu Jul 16 13:51:31 2009 +0200

    Fix regression on importing same photo uris
    
    GetFilename in PhotoStore.cs:903 return anything after last / as filename.
    This causes problems in import. Working around this by adding a / to the directory used for duplicate scans.

 src/FileImportBackend.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/FileImportBackend.cs b/src/FileImportBackend.cs
index a52bd6f..8588b28 100644
--- a/src/FileImportBackend.cs
+++ b/src/FileImportBackend.cs
@@ -78,7 +78,7 @@ public class FileImportBackend : ImportBackend {
 		Log.Debug ("Scanning {0} for new photos", dirinfo.FullName);
 		List<Uri> existing_entries = new List<Uri> ();
 
-		foreach (Photo p in store.Query (new Uri (dirinfo.FullName)))
+		foreach (Photo p in store.Query (new Uri (dirinfo.FullName + "/")))
 			foreach (uint id in p.VersionIds)
 				existing_entries.Add (p.VersionUri (id));
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]