From: Jan Rękorajski Date: Sun, 2 Dec 2012 13:58:56 +0000 (+0100) Subject: - removed namespace check in rpmal.c, it was unneccessary as the X-Git-Tag: auto/th/rpm-5.4.10-35.5 X-Git-Url: http://git.pld-linux.org/?p=packages%2Frpm.git;a=commitdiff_plain;h=refs%2Ftags%2Fauto%2Fth%2Frpm-5.4.10-35.5 - removed namespace check in rpmal.c, it was unneccessary as the comparison was on unparsed names and broke name-to-provides check during upgrades - rel .5 --- diff --git a/rpm-namespace-compare.patch b/rpm-namespace-compare.patch index eeb38c8..e38d8dd 100644 --- a/rpm-namespace-compare.patch +++ b/rpm-namespace-compare.patch @@ -196,40 +196,3 @@ diff -ur rpm-5.4.10/lib/depends.c rpm-5.4.10.nstype/lib/depends.c } if (rc && (ourrc = rc) >= terminate) goto exit; -diff -ur rpm-5.4.10/lib/rpmal.c rpm-5.4.10.nstype/lib/rpmal.c ---- rpm-5.4.10/lib/rpmal.c 2012-04-15 23:20:57.000000000 +0200 -+++ rpm-5.4.10.nstype/lib/rpmal.c 2012-11-30 12:57:52.579432191 +0100 -@@ -61,6 +65,7 @@ - alKey pkgKey; /*!< Containing package. */ - /*@observer@*/ - const char * entry; /*!< Dependency name. */ -+ nsType entryNS; /*!< Dependency namesapce. */ - unsigned short entryLen; /*!< No. of bytes in name. */ - unsigned short entryIx; /*!< Dependency index. */ - indexEntryType_e type; /*!< Type of available item. */ -@@ -271,6 +276,9 @@ - if (lenchk) - return lenchk; - -+ if (a->entryNS != b->entryNS) -+ return -1; -+ - return strcmp(a->entry, b->entry); - } - -@@ -305,6 +313,7 @@ - aie->pkgKey = pkgKey; - /*@-assignexpose@*/ - aie->entry = Name; -+ aie->entryNS = rpmdsNSType(provides); - /*@=assignexpose@*/ - aie->entryLen = (unsigned short)strlen(Name); - ix = rpmdsIx(provides); -@@ -421,6 +431,7 @@ - memset(alloca(sizeof(*needle)), 0, sizeof(*needle)); - /*@-assignexpose -temptrans@*/ - needle->entry = KName; -+ needle->entryNS = rpmdsNSType(ds); - /*@=assignexpose =temptrans@*/ - needle->entryLen = (unsigned short)strlen(needle->entry); - diff --git a/rpm.spec b/rpm.spec index bfa3c75..1fbf4f9 100644 --- a/rpm.spec +++ b/rpm.spec @@ -52,7 +52,7 @@ Summary(ru.UTF-8): Менеджер пакетов от RPM Summary(uk.UTF-8): Менеджер пакетів від RPM Name: rpm Version: 5.4.10 -Release: 35.4 +Release: 35.5 License: LGPL Group: Base # http://rpm5.org/files/rpm/rpm-5.4/rpm-5.4.10-0.20120706.src.rpm