avoid writing empty loglines
authorMichael Andres <ma@suse.de>
Thu, 9 Oct 2008 11:32:19 +0000 (11:32 +0000)
committerMichael Andres <ma@suse.de>
Thu, 9 Oct 2008 11:32:19 +0000 (11:32 +0000)
zypp/PathInfo.cc

index c2b5875..b19e647 100644 (file)
@@ -404,9 +404,9 @@ namespace zypp
       closedir( dp );
 
       if ( ::rmdir( dir.c_str() ) < 0 )
-        return _Log_Result( errno );
+        return errno;
 
-      return _Log_Result( 0 );
+      return 0;
     }
     ///////////////////////////////////////////////////////////////////
     int recursive_rmdir( const Pathname & path )
@@ -422,7 +422,7 @@ namespace zypp
         return _Log_Result( ENOTDIR );
       }
 
-      return recursive_rmdir_1( path );
+      return _Log_Result( recursive_rmdir_1( path ) );
     }
 
     ///////////////////////////////////////////////////////////////////