RPM Package Manager, CVS Repository http://rpm5.org/cvs/ ____________________________________________________________________________
Server: rpm5.org Name: Per Øyvind Karlsen Root: /v/rpm/cvs Email: pkarl...@rpm5.org Module: rpm Date: 08-May-2009 16:28:41 Branch: HEAD Handle: 2009050814284100 Modified files: rpm CHANGES rpm/build pack.c Log: remove %distepoch from %provideversion as it will break compatibility with rpm <= 4.5. Summary: Revision Changes Path 1.2974 +2 -0 rpm/CHANGES 2.311 +0 -16 rpm/build/pack.c ____________________________________________________________________________ patch -p0 <<'@@ .' Index: rpm/CHANGES ============================================================================ $ cvs diff -u -r1.2973 -r1.2974 CHANGES --- rpm/CHANGES 7 May 2009 17:09:01 -0000 1.2973 +++ rpm/CHANGES 8 May 2009 14:28:41 -0000 1.2974 @@ -1,5 +1,7 @@ 5.2b1 -> 5.3a1 + - proyvind: remove %distepoch from %provideversion as it will break + compatibility with rpm <= 4.5. - proyvind: rpm4compat: add a wrapper function for headerFormat(). - rse: align semantics of Lua function rpm.hostname() with the C API function buildHost() @@ . patch -p0 <<'@@ .' Index: rpm/build/pack.c ============================================================================ $ cvs diff -u -r2.310 -r2.311 pack.c --- rpm/build/pack.c 26 Mar 2009 18:07:31 -0000 2.310 +++ rpm/build/pack.c 8 May 2009 14:28:41 -0000 2.311 @@ -453,10 +453,6 @@ { HE_t he = memset(alloca(sizeof(*he)), 0, sizeof(*he)); const char *N, *V, *R; -#ifdef RPM_VENDOR_MANDRIVA - const char *D; - int gotD; -#endif rpmuint32_t E; int gotE; const char *pEVR; @@ -477,12 +473,6 @@ return; nb = 21 + strlen(V) + 1 + strlen(R) + 1; -#ifdef RPM_VENDOR_MANDRIVA - he->tag = RPMTAG_DISTEPOCH; - gotD = headerGet(h, he, 0); - D = (he->p.str ? he->p.str : NULL); - nb += (gotD ? strlen(D) + 1 : 0); -#endif pEVR = p = alloca(nb); *p = '\0'; he->tag = RPMTAG_EPOCH; @@ -494,12 +484,6 @@ p += strlen(p); } p = stpcpy( stpcpy( stpcpy(p, V) , "-") , R); -#ifdef RPM_VENDOR_MANDRIVA - if (gotD) { - p = stpcpy( stpcpy( p, ":"), D); - D = _free(D); - } -#endif V = _free(V); R = _free(R); @@ . ______________________________________________________________________ RPM Package Manager http://rpm5.org CVS Sources Repository rpm-cvs@rpm5.org