0.5.15lorg3.1 loses epochs on rh7.3/rh8.0/rh9 (promoteepoch?)

Panu Matilainen pmatilai at laiskiainen.org
Mon May 29 23:54:38 PDT 2006


On Tue, 30 May 2006, Axel Thimm wrote:

> Hi,
>
> there is also some reporting from RH9 users:
>
> http://bugzilla.atrpms.net/show_bug.cgi?id=831

Hum. I just realized you said you're offering rpm 4.4.2 for RHL 9 and 
others, not just in the buildsystem. Pardon my earlier ramblings about 
mixing and matching stuff :)

So.. the HideZeroEpoch should indeed be linked with --promoteepoch for 
this to work I suppose.

> Should I withdraw this version from the repo until there's a solution?
> Or even revert back to the previous one and add an epoch (god forbid,
> but currently I'm breaking RH7.3-RH9 users running apt)?

For a quick-n-dirty solution, I guess the below patch applied to those 
versions needing promoteepoch would fix it. I'll try to come up with a 
proper solution this evening, right now I gotta try and concentrate on my 
dayjob :)

 	- Panu -

--- apt-pkg/rpm/rpmhandler.cc   (revision 197)
+++ apt-pkg/rpm/rpmhandler.cc   (working copy)
@@ -44,11 +44,7 @@
  // An attempt to deal with false zero epochs from repomd. With older 
rpm's we
  // can only blindly trust the repo admin created the repository with 
options
  // suitable for those versions.
-#if RPM_VERSION >= 0x040201
-static bool HideZeroEpoch = true;
-#else
  static bool HideZeroEpoch = false;
-#endif

  string RPMHandler::Epoch()
  {




More information about the Apt-Rpm mailing list