[SCM] exiv2 packaging branch, master, updated. debian/0.25-3.1-3734-gdcbc29a
Maximiliano Curia
maxy at moszumanska.debian.org
Thu Jul 13 17:46:12 UTC 2017
Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/exiv2.git;a=commitdiff;h=a489e1c
The following commit has been merged in the master branch:
commit a489e1cea7231a7fa9d97f2bb32da169273c5270
Author: Robin Mills <robin at clanmills.com>
Date: Sat Jan 9 10:54:49 2016 +0000
#1148 Fixed Todo: Should use XMP packet if there are no XMP modification commands
---
src/actions.cpp | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/src/actions.cpp b/src/actions.cpp
index d6a29fa..1ca9447 100644
--- a/src/actions.cpp
+++ b/src/actions.cpp
@@ -1963,8 +1963,18 @@ namespace {
std::cout << _("Writing XMP data from") << " " << source
<< " " << _("to") << " " << target << std::endl;
}
- // Todo: Should use XMP packet if there are no XMP modification commands
- targetImage->setXmpData(sourceImage->xmpData());
+ // #1148 use XMP packet if there are no XMP modification commands
+ if ( Params::instance().modifyCmds_.size() == 0 ) {
+ // http://www.cplusplus.com/reference/ostream/ostream/ostream/
+ std::filebuf fb;
+ fb.open (target,std::ios::out);
+ std::ostream os(&fb);
+ sourceImage->printStructure(os,Exiv2::kpsXMP);
+ fb.close();
+ return 0;
+ } else {
+ targetImage->setXmpData(sourceImage->xmpData());
+ }
}
if ( Params::instance().target_ & Params::ctComment
&& !sourceImage->comment().empty()) {
--
exiv2 packaging
More information about the pkg-kde-commits
mailing list