gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r19369 - gnunet/src/fs


From: gnunet
Subject: [GNUnet-SVN] r19369 - gnunet/src/fs
Date: Wed, 25 Jan 2012 10:53:30 +0100

Author: grothoff
Date: 2012-01-25 10:53:30 +0100 (Wed, 25 Jan 2012)
New Revision: 19369

Modified:
   gnunet/src/fs/gnunet-publish.c
Log:
-fix use of extractor

Modified: gnunet/src/fs/gnunet-publish.c
===================================================================
--- gnunet/src/fs/gnunet-publish.c      2012-01-25 09:48:46 UTC (rev 19368)
+++ gnunet/src/fs/gnunet-publish.c      2012-01-25 09:53:30 UTC (rev 19369)
@@ -506,7 +506,6 @@
 run (void *cls, char *const *args, const char *cfgfile,
      const struct GNUNET_CONFIGURATION_Handle *c)
 {
-  struct EXTRACTOR_PluginList *plugins;
   char *ex;
   char *emsg;
 
@@ -600,23 +599,14 @@
       GNUNET_FS_namespace_delete (namespace, GNUNET_NO);
     return;
   }
+  if (GNUNET_OK !=
+      GNUNET_CONFIGURATION_get_value_string (cfg, "FS", "EXTRACTORS", &ex))
+    ex = NULL;
+
   ds = GNUNET_FS_directory_scan_start (args[0],
-      GNUNET_NO, NULL, directory_scan_cb, NULL);
- 
-  plugins = NULL;
-  if (!disable_extractor)
-  {
-    plugins = EXTRACTOR_plugin_add_defaults (EXTRACTOR_OPTION_DEFAULT_POLICY);
-    if (GNUNET_OK ==
-        GNUNET_CONFIGURATION_get_value_string (cfg, "FS", "EXTRACTORS", &ex))
-    {
-      if (strlen (ex) > 0)
-        plugins =
-            EXTRACTOR_plugin_add_config (plugins, ex,
-                                         EXTRACTOR_OPTION_DEFAULT_POLICY);
-      GNUNET_free (ex);
-    }
-  }
+                                      disable_extractor, 
+                                      ex, 
+                                      &directory_scan_cb, NULL);
   kill_task =
       GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, 
&do_stop_task,
                                     NULL);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]