diff --git a/client/pkg/jdbc.py b/client/pkg/jdbc.py index 24abef6..c7163d1 100644 --- a/client/pkg/jdbc.py +++ b/client/pkg/jdbc.py @@ -22,6 +22,7 @@ class JDBCPackage(Package): def __init__(self): super(JDBCPackage, self).__init__(self.__PKGNAME) self._jar = None + self._jar_name = None self.staged = [Stage('nuodbjdbc', title='NuoDB JDBC Driver', @@ -42,8 +43,9 @@ def download(self): self.setversion(mvn.version) - self._jar = Artifact(self.name, 'nuodbjdbc.jar', - '{}/{}/{}'.format(mvn.baseurl, mvn.version, self.__JAR.format(mvn.version))) + self._jar_name = self.__JAR.format(mvn.version) + self._jar = Artifact(self.name, self._jar_name, + '{}/{}/{}'.format(mvn.baseurl, mvn.version, self._jar_name)) # We only download the actual jar file self._jar.update() @@ -55,7 +57,7 @@ def unpack(self): savefile(os.path.join(self.pkgroot, 'LICENSE.txt'), self.getlicense('3BSD')) def install(self): - self.stage.stage('jar', ['nuodbjdbc.jar']) + self.stage.stage('jar', [self._jar_name]) self.stage.stage('doc', ['LICENSE.txt']) nuodb = self.get_package('nuodb')