[med-svn] [Git][med-team/orthanc-webviewer][master] 2 commits: fix compatibility with Orthanc framework 1.9.0

Sebastien Jodogne gitlab at salsa.debian.org
Fri Jan 29 15:30:11 GMT 2021



Sebastien Jodogne pushed to branch master at Debian Med / orthanc-webviewer


Commits:
679ada24 by jodogne-guest at 2021-01-29T16:21:44+01:00
fix compatibility with Orthanc framework 1.9.0

- - - - -
8a000aa8 by jodogne-guest at 2021-01-29T16:29:18+01:00
Upload to unstable

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/orthanc-framework
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+orthanc-webviewer (2.7-2) unstable; urgency=medium
+
+  * Compatibility with Orthanc framework 1.9.0
+
+ -- Sebastien Jodogne <s.jodogne at gmail.com>  Fri, 29 Jan 2021 16:17:14 +0100
+
 orthanc-webviewer (2.7-1) unstable; urgency=medium
 
   * New upstream version


=====================================
debian/patches/orthanc-framework
=====================================
@@ -0,0 +1,24 @@
+Description: Fix compatibility with Orthanc framework 1.9.0
+Author: Sebastien Jodogne <s.jodogne at orthanc-labs.com>
+Forwarded: yes
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: OrthancWebViewer-2.7/Plugin/Cache/CacheManager.cpp
+===================================================================
+--- OrthancWebViewer-2.7.orig/Plugin/Cache/CacheManager.cpp
++++ OrthancWebViewer-2.7/Plugin/Cache/CacheManager.cpp
+@@ -475,7 +475,14 @@ namespace OrthancPlugins
+     bool ok;
+     try
+     {
++#if defined(ORTHANC_FRAMEWORK_VERSION_IS_ABOVE) && ORTHANC_FRAMEWORK_VERSION_IS_ABOVE(1, 9, 0) 
++      std::unique_ptr<Orthanc::IMemoryBuffer> buffer(
++        pimpl_->storage_.Read(uuid, Orthanc::FileContentType_Unknown));
++      buffer->MoveToString(content);
++#else
+       pimpl_->storage_.Read(content, uuid, Orthanc::FileContentType_Unknown);
++#endif
++      
+       ok = (content.size() == size);
+     }
+     catch (std::runtime_error&)


=====================================
debian/patches/series
=====================================
@@ -1 +1,2 @@
 cmake
+orthanc-framework



View it on GitLab: https://salsa.debian.org/med-team/orthanc-webviewer/-/compare/ac067ead54dd93de950f5392e994f94a37b9cb59...8a000aa8f88532f2590a1f8f6da116cedde63e9f

-- 
View it on GitLab: https://salsa.debian.org/med-team/orthanc-webviewer/-/compare/ac067ead54dd93de950f5392e994f94a37b9cb59...8a000aa8f88532f2590a1f8f6da116cedde63e9f
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20210129/f84270f8/attachment-0001.html>


More information about the debian-med-commit mailing list