summaryrefslogtreecommitdiffstats
path: root/src/client/ClientStore.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-02-18 15:37:36 +0000
committerDavid Robillard <d@drobilla.net>2011-02-18 15:37:36 +0000
commit05c2dfb6d677e5dc49c4de1ec568da4f69e3c877 (patch)
tree8d2ff26fa8eeec66777ae84c41a51c238137e402 /src/client/ClientStore.cpp
parentd3264c5685c90856379df368f131188c2af6ab09 (diff)
downloadingen-05c2dfb6d677e5dc49c4de1ec568da4f69e3c877.tar.gz
ingen-05c2dfb6d677e5dc49c4de1ec568da4f69e3c877.tar.bz2
ingen-05c2dfb6d677e5dc49c4de1ec568da4f69e3c877.zip
Trim more cruft.
Correctly receive data about plugins with hashes in their URIs. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2988 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/client/ClientStore.cpp')
-rw-r--r--src/client/ClientStore.cpp21
1 files changed, 9 insertions, 12 deletions
diff --git a/src/client/ClientStore.cpp b/src/client/ClientStore.cpp
index 4ae2ff2d..010acb10 100644
--- a/src/client/ClientStore.cpp
+++ b/src/client/ClientStore.cpp
@@ -254,22 +254,19 @@ ClientStore::put(const URI& uri, const Resource::Properties& properties)
/*LOG(info) << "PUT " << uri << " {" << endl;
for (iterator i = properties.begin(); i != properties.end(); ++i)
LOG(info) << " " << i->first << " = " << i->second << " :: " << i->second.type() << endl;
- LOG(info) << "}" << endl;*/
+ LOG(info) << "}" << endl;*/
- bool is_path = Path::is_valid(uri.str());
bool is_meta = ResourceImpl::is_meta_uri(uri);
- if (!(is_path || is_meta)) {
- const Atom& type = properties.find(_uris->rdf_type)->second;
- if (type.type() == Atom::URI) {
- const URI& type_uri = type.get_uri();
- if (Plugin::type_from_uri(type_uri) != Plugin::NIL) {
- SharedPtr<PluginModel> p(new PluginModel(uris(), uri, type_uri, properties));
- add_plugin(p);
- return;
- }
+ // Check if uri is a plugin
+ const Atom& type = properties.find(_uris->rdf_type)->second;
+ if (type.type() == Atom::URI) {
+ const URI& type_uri = type.get_uri();
+ if (Plugin::type_from_uri(type_uri) != Plugin::NIL) {
+ SharedPtr<PluginModel> p(new PluginModel(uris(), uri, type_uri, properties));
+ add_plugin(p);
+ return;
} else {
- LOG(error) << "Non-URI type " << type << endl;
}
}