Author: dmacvicar Date: Tue Feb 19 13:17:12 2008 New Revision: 8802 URL: http://svn.opensuse.org/viewcvs/zypp?rev=8802&view=rev Log: - hardlink when possible to optimize data transfer and space across caches. - bump version Modified: trunk/libzypp/VERSION.cmake trunk/libzypp/package/libzypp.changes trunk/libzypp/zypp/Fetcher.cc Modified: trunk/libzypp/VERSION.cmake URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/VERSION.cmake?rev=8802&r1=8801&r2=8802&view=diff ============================================================================== --- trunk/libzypp/VERSION.cmake (original) +++ trunk/libzypp/VERSION.cmake Tue Feb 19 13:17:12 2008 @@ -47,4 +47,4 @@ SET(LIBZYPP_MAJOR "4") SET(LIBZYPP_MINOR "2") SET(LIBZYPP_COMPATMINOR "2") -SET(LIBZYPP_PATCH "7") +SET(LIBZYPP_PATCH "8") Modified: trunk/libzypp/package/libzypp.changes URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/package/libzypp.changes?rev=8802&r1=8801&r2=8802&view=diff ============================================================================== --- trunk/libzypp/package/libzypp.changes (original) +++ trunk/libzypp/package/libzypp.changes Tue Feb 19 13:17:12 2008 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Tue Feb 19 11:21:59 CET 2008 - dmacvicar@suse.de + +- hardlink when possible to optimize data transfer + and space across caches. +- version 4.2.8 + +------------------------------------------------------------------- Tue Feb 19 08:15:07 CET 2008 - coolo@suse.de - added some locale support to sat::Solvable Modified: trunk/libzypp/zypp/Fetcher.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/Fetcher.cc?rev=8802&r1=8801&r2=8802&view=diff ============================================================================== --- trunk/libzypp/zypp/Fetcher.cc (original) +++ trunk/libzypp/zypp/Fetcher.cc Tue Feb 19 13:17:12 2008 @@ -166,12 +166,15 @@ if ( assert_dir( dest_full_path.dirname() ) != 0 ) ZYPP_THROW( Exception("Can't create " + dest_full_path.dirname().asString())); - if ( filesystem::copy(cached_file, dest_full_path ) != 0 ) - { //copy_file2dir - //ZYPP_THROW(SourceIOException("Can't copy " + cached_file.asString() + " to " + destination.asString())); - ERR << "Can't copy " << cached_file + " to " + dest_dir << endl; - // try next cache - continue; + if ( filesystem::hardlink(cached_file, dest_full_path ) != 0 ) + { + WAR << "Can't hardlink '" << cached_file << "' to '" << dest_dir << "'. Trying copying." << endl; + if ( filesystem::copy(cached_file, dest_full_path ) != 0 ) + { + ERR << "Can't copy " << cached_file + " to " + dest_dir << endl; + // try next cache + continue; + } } } -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org