FELIX-553: actually safer to always use scheme specific part here

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@682011 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/bundleplugin/src/main/java/org/apache/felix/obrplugin/ObrDeploy.java b/bundleplugin/src/main/java/org/apache/felix/obrplugin/ObrDeploy.java
index c26d826..a0fb276 100644
--- a/bundleplugin/src/main/java/org/apache/felix/obrplugin/ObrDeploy.java
+++ b/bundleplugin/src/main/java/org/apache/felix/obrplugin/ObrDeploy.java
@@ -179,8 +179,7 @@
         }
 
         URI tempURI = ObrUtils.findRepositoryXml( "", remoteOBR );
-        String repositoryPath = tempURI.isOpaque() ? tempURI.getSchemeSpecificPart() : tempURI.getPath();
-        String repositoryName = new File( repositoryPath ).getName();
+        String repositoryName = new File( tempURI.getSchemeSpecificPart() ).getName();
 
         Log log = getLog();
         ObrUpdate update;
diff --git a/bundleplugin/src/main/java/org/apache/felix/obrplugin/ObrDeployFile.java b/bundleplugin/src/main/java/org/apache/felix/obrplugin/ObrDeployFile.java
index 88816d8..ae3e07b 100644
--- a/bundleplugin/src/main/java/org/apache/felix/obrplugin/ObrDeployFile.java
+++ b/bundleplugin/src/main/java/org/apache/felix/obrplugin/ObrDeployFile.java
@@ -146,8 +146,7 @@
         }
 
         URI tempURI = ObrUtils.findRepositoryXml( "", remoteOBR );
-        String repositoryPath = tempURI.isOpaque() ? tempURI.getSchemeSpecificPart() : tempURI.getPath();
-        String repositoryName = new File( repositoryPath ).getName();
+        String repositoryName = new File( tempURI.getSchemeSpecificPart() ).getName();
 
         Log log = getLog();
         ObrUpdate update;