From mboxrd@z Thu Jan 1 00:00:00 1970 From: rmccabe@sourceware.org Date: 3 Mar 2007 05:18:18 -0000 Subject: [Cluster-devel] conga/ricci/modules/rpm PackageHandler.cpp Message-ID: <20070303051818.9757.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: conga Branch: RHEL5 Changes by: rmccabe at sourceware.org 2007-03-03 05:18:18 Modified files: ricci/modules/rpm: PackageHandler.cpp Log message: yum repo names may contain spaces, so the != 3 check will cause packages in repositories whose name contains a space to be omitted from the package list. Change the check to l < 3, as we don't care what the repository is called, just what the package's name and version are. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/rpm/PackageHandler.cpp.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.9.2.3&r2=1.9.2.4 --- conga/ricci/modules/rpm/PackageHandler.cpp 2007/03/01 00:31:20 1.9.2.3 +++ conga/ricci/modules/rpm/PackageHandler.cpp 2007/03/03 05:18:17 1.9.2.4 @@ -133,7 +133,7 @@ line = utils::strip(line); vector words = utils::split(line); vector::size_type l = words.size(); - if (l != 3) + if (l < 3) continue; String name = words[0]; String::size_type idx = name.rfind('.');