[SCM] exiv2 packaging branch, master, updated. debian/0.25-3.1-3734-gdcbc29a

Maximiliano Curia maxy at moszumanska.debian.org
Thu Jul 13 17:36:19 UTC 2017


Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/exiv2.git;a=commitdiff;h=90d217f

The following commit has been merged in the master branch:
commit 90d217f17379a307acc71ac1f0514caa2a0fb21c
Author: Andreas Huggel <ahuggel at gmx.net>
Date:   Mon May 10 13:15:13 2004 +0000

    Improved consistency of stderr and stdout output
---
 src/actions.cpp | 22 +++++++++-------------
 1 file changed, 9 insertions(+), 13 deletions(-)

diff --git a/src/actions.cpp b/src/actions.cpp
index 0995e13..b5d7f7d 100644
--- a/src/actions.cpp
+++ b/src/actions.cpp
@@ -20,13 +20,13 @@
  */
 /*
   File:      actions.cpp
-  Version:   $Name:  $ $Revision: 1.21 $
+  Version:   $Name:  $ $Revision: 1.22 $
   Author(s): Andreas Huggel (ahu) <ahuggel at gmx.net>
   History:   08-Dec-03, ahu: created
  */
 // *****************************************************************************
 #include "rcsid.hpp"
-EXIV2_RCSID("@(#) $Name:  $ $Revision: 1.21 $ $RCSfile: actions.cpp,v $")
+EXIV2_RCSID("@(#) $Name:  $ $Revision: 1.22 $ $RCSfile: actions.cpp,v $")
 
 // *****************************************************************************
 // included header files
@@ -556,9 +556,7 @@ namespace Action {
         int rc = 0;
         std::string thumbExt = exifData.thumbnailExtension();
         if (thumbExt.empty()) {
-            if (Params::instance().verbose_) {
-                std::cout << "Image does not contain an Exif thumbnail
"; 
-            }
+            std::cerr << path_ << ": Image does not contain an Exif thumbnail
"; 
         }
         else {
             long delta = exifData.eraseThumbnail();
@@ -640,22 +638,20 @@ namespace Action {
 
     int Extract::writeThumbnail(const Exiv2::ExifData& exifData) const
     {
+        int rc = 0;
         std::string thumb =   Util::dirname(path_) + "/"
                             + Util::basename(path_, true) + "-thumb";
         std::string thumbExt = exifData.thumbnailExtension();
-        if (Params::instance().verbose_) {
-            if (thumbExt.empty()) {
-                std::cout << "Image does not contain an Exif thumbnail
";
-            }
-            else {
+        if (thumbExt.empty()) {
+            std::cerr << path_ << ": Image does not contain an Exif thumbnail
"; 
+        }
+        else {
+            if (Params::instance().verbose_) {
                 std::cout << "Writing "
                           << exifData.thumbnailFormat() << " thumbnail (" 
                           << exifData.thumbnailSize() << " Bytes) to file "
                           << thumb << thumbExt << "
";
             }
-        }
-        int rc = 0;
-        if (!thumbExt.empty()) {
             if (!Params::instance().force_ && Util::fileExists(thumb + thumbExt)) {
                 std::cout << Params::instance().progname() 
                           << ": Overwrite `" << thumb + thumbExt << "'? ";

-- 
exiv2 packaging



More information about the pkg-kde-commits mailing list