beagle r4814 - trunk/beagle/beagled
- From: dbera svn gnome org
- To: svn-commits-list gnome org
- Subject: beagle r4814 - trunk/beagle/beagled
- Date: Tue, 8 Jul 2008 04:29:19 +0000 (UTC)
Author: dbera
Date: Tue Jul 8 04:29:19 2008
New Revision: 4814
URL: http://svn.gnome.org/viewvc/beagle?rev=4814&view=rev
Log:
Fix a sloppy bug where the Uri for a non-removable source was incorrect.
Modified:
trunk/beagle/beagled/BuildIndex.cs
Modified: trunk/beagle/beagled/BuildIndex.cs
==============================================================================
--- trunk/beagle/beagled/BuildIndex.cs (original)
+++ trunk/beagle/beagled/BuildIndex.cs Tue Jul 8 04:29:19 2008
@@ -794,6 +794,10 @@
return indexable;
}
+ ////////////////////////////////////////////////////
+ // Methods to generate the relative path and
+ // uri for removable sources.
+
static string PathInIndex (string fullpath)
{
if (! arg_removable)
@@ -812,6 +816,9 @@
static Uri PathToUri (string fullpath)
{
+ if (! arg_removable)
+ return UriFu.PathToFileUri (fullpath);
+
fullpath = PathInIndex (fullpath);
return new Uri (String.Format ("removable{0}{1}{2}",
@@ -820,6 +827,8 @@
StringFu.HexEscape (fullpath)), true);
}
+ ///////////////////////////////////////////////////
+
class Dirent {
private bool is_directory;
private string path;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]