[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r7531 - GNUnet/src/applications/fs/fsui
From: |
gnunet |
Subject: |
[GNUnet-SVN] r7531 - GNUnet/src/applications/fs/fsui |
Date: |
Wed, 6 Aug 2008 10:30:47 -0600 (MDT) |
Author: grothoff
Date: 2008-08-06 10:30:47 -0600 (Wed, 06 Aug 2008)
New Revision: 7531
Modified:
GNUnet/src/applications/fs/fsui/upload.c
Log:
fixing 1363
Modified: GNUnet/src/applications/fs/fsui/upload.c
===================================================================
--- GNUnet/src/applications/fs/fsui/upload.c 2008-08-02 22:17:12 UTC (rev
7530)
+++ GNUnet/src/applications/fs/fsui/upload.c 2008-08-06 16:30:47 UTC (rev
7531)
@@ -478,10 +478,27 @@
(copied here to allow free later) */
loc = GNUNET_ECRS_uri_duplicate (utc->uri);
}
+ if (utc->shared->individualKeywords == GNUNET_YES)
+ {
+ /* need to convert to URI *before*
+ removing split/lower from meta */
+ uri = GNUNET_meta_data_to_uri (utc->meta);
+ }
while (GNUNET_OK ==
- GNUNET_meta_data_delete (utc->meta, EXTRACTOR_SPLIT, NULL));
+ GNUNET_meta_data_delete (utc->meta, EXTRACTOR_SPLIT, NULL));
while (GNUNET_OK ==
- GNUNET_meta_data_delete (utc->meta, EXTRACTOR_LOWERCASE, NULL));
+ GNUNET_meta_data_delete (utc->meta, EXTRACTOR_LOWERCASE, NULL));
+ if (utc->shared->individualKeywords == GNUNET_YES)
+ {
+ GNUNET_ECRS_publish_under_keyword (ectx,
+ utc->shared->ctx->cfg,
+ uri,
+ utc->shared->anonymityLevel,
+ utc->shared->priority,
+ utc->shared->expiration, loc,
+ utc->meta);
+ GNUNET_ECRS_uri_destroy (uri);
+ }
if (utc->shared->global_keywords != NULL)
GNUNET_ECRS_publish_under_keyword (ectx,
utc->shared->ctx->cfg,
@@ -498,18 +515,6 @@
utc->shared->priority,
utc->shared->expiration, loc,
utc->meta);
- if (utc->shared->individualKeywords == GNUNET_YES)
- {
- uri = GNUNET_meta_data_to_uri (utc->meta);
- GNUNET_ECRS_publish_under_keyword (ectx,
- utc->shared->ctx->cfg,
- uri,
- utc->shared->anonymityLevel,
- utc->shared->priority,
- utc->shared->expiration, loc,
- utc->meta);
- GNUNET_ECRS_uri_destroy (uri);
- }
GNUNET_ECRS_uri_destroy (loc);
loc = NULL;
fi.meta = utc->meta;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r7531 - GNUnet/src/applications/fs/fsui,
gnunet <=