Author: mlandres Date: Fri Aug 8 14:18:37 2008 New Revision: 10802 URL: http://svn.opensuse.org/viewcvs/zypp?rev=10802&view=rev Log: - Don't pass epoch to 'rpm -e', it does not support it. Modified: branches/SuSE-Linux-11_0-Branch/libzypp/package/libzypp.changes branches/SuSE-Linux-11_0-Branch/libzypp/zypp/target/rpm/RpmDb.cc Modified: branches/SuSE-Linux-11_0-Branch/libzypp/package/libzypp.changes URL: http://svn.opensuse.org/viewcvs/zypp/branches/SuSE-Linux-11_0-Branch/libzypp/package/libzypp.changes?rev=10802&r1=10801&r2=10802&view=diff ============================================================================== --- branches/SuSE-Linux-11_0-Branch/libzypp/package/libzypp.changes (original) +++ branches/SuSE-Linux-11_0-Branch/libzypp/package/libzypp.changes Fri Aug 8 14:18:37 2008 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Fri Aug 8 14:11:03 CEST 2008 - ma@suse.de + +- Don't pass epoch to 'rpm -e', it does not support it. +- revision 10801 + +------------------------------------------------------------------- Wed Aug 6 18:21:30 CEST 2008 - ma@suse.de - Detect correct download path even if repository type Modified: branches/SuSE-Linux-11_0-Branch/libzypp/zypp/target/rpm/RpmDb.cc URL: http://svn.opensuse.org/viewcvs/zypp/branches/SuSE-Linux-11_0-Branch/libzypp/zypp/target/rpm/RpmDb.cc?rev=10802&r1=10801&r2=10802&view=diff ============================================================================== --- branches/SuSE-Linux-11_0-Branch/libzypp/zypp/target/rpm/RpmDb.cc (original) +++ branches/SuSE-Linux-11_0-Branch/libzypp/zypp/target/rpm/RpmDb.cc Fri Aug 8 14:18:37 2008 @@ -1014,7 +1014,7 @@ Date date = Date(str::strtonumDate::ValueType("0x" + (*it).release())); if ( date == pubkey_r.created() ) { - + MIL << endl << "Key " << pubkey_r << " is already in the rpm trusted keyring." << endl; return; } @@ -1023,12 +1023,12 @@ MIL << endl << "Key " << pubkey_r << " has another version in keyring. ( " << date << " & " << pubkey_r.created() << ")" << endl; } - + } } // key does not exists, lets import it MIL << endl; - + RpmArgVec opts; opts.push_back ( "--import" ); opts.push_back ( "--" ); @@ -2093,8 +2093,10 @@ // void RpmDb::removePackage( Package::constPtr package, unsigned flags ) { + // 'rpm -e' does not like epochs return removePackage( package->name() - + "-" + package->edition().asString() + + "-" + package->edition().version() + + "-" + package->edition().release() + "." + package->arch().asString(), flags ); } -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org