+-------------------------------------------------------------------
+Fri Aug 8 14:11:03 CEST 2008 - ma@suse.de
+
+- Don't pass epoch to 'rpm -e', it does not support it.
+- revision 10800
+
-------------------------------------------------------------------
Fri Aug 8 13:27:42 CEST 2008 - ma@suse.de
Date date = Date(str::strtonum<Date::ValueType>("0x" + (*it).release()));
if ( date == pubkey_r.created() )
{
-
+
MIL << endl << "Key " << pubkey_r << " is already in the rpm trusted keyring." << endl;
return;
}
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 ( "--" );
//
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 );
}