Author: matz Date: Thu Feb 14 10:22:25 2008 New Revision: 8669 URL: http://svn.opensuse.org/viewcvs/zypp?rev=8669&view=rev Log: Correct size calculation and use the right attribute name for the install size. Modified: branches/tmp/ma/jump_sat/libzypp/zypp/ResObject.cc branches/tmp/ma/jump_sat/libzypp/zypp/sat/SolvAttr.cc Modified: branches/tmp/ma/jump_sat/libzypp/zypp/ResObject.cc URL: http://svn.opensuse.org/viewcvs/zypp/branches/tmp/ma/jump_sat/libzypp/zypp/ResObject.cc?rev=8669&r1=8668&r2=8669&view=diff ============================================================================== --- branches/tmp/ma/jump_sat/libzypp/zypp/ResObject.cc (original) +++ branches/tmp/ma/jump_sat/libzypp/zypp/ResObject.cc Thu Feb 14 10:22:25 2008 @@ -129,10 +129,10 @@ { return lookupStrAttribute( sat::SolvAttr::eula ); } ByteCount ResObject::size() const - { return lookupNumAttribute( sat::SolvAttr::size ); } + { return 1024 * lookupNumAttribute( sat::SolvAttr::size ); } ByteCount ResObject::downloadSize() const - { return lookupNumAttribute( sat::SolvAttr::downloadsize ); } + { return 1024 * lookupNumAttribute( sat::SolvAttr::downloadsize ); } RepoInfo ResObject::repoInfo() const { return repo().info(); } Modified: branches/tmp/ma/jump_sat/libzypp/zypp/sat/SolvAttr.cc URL: http://svn.opensuse.org/viewcvs/zypp/branches/tmp/ma/jump_sat/libzypp/zypp/sat/SolvAttr.cc?rev=8669&r1=8668&r2=8669&view=diff ============================================================================== --- branches/tmp/ma/jump_sat/libzypp/zypp/sat/SolvAttr.cc (original) +++ branches/tmp/ma/jump_sat/libzypp/zypp/sat/SolvAttr.cc Thu Feb 14 10:22:25 2008 @@ -29,7 +29,7 @@ const SolvAttr SolvAttr::delnotify ( "delnotify" ); const SolvAttr SolvAttr::vendor ( "vendor" ); const SolvAttr SolvAttr::license ( "license" ); - const SolvAttr SolvAttr::size ( "size" ); + const SolvAttr SolvAttr::size ( "installsize" ); const SolvAttr SolvAttr::downloadsize ( "downloadsize" ); //package -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org