[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] conga/ricci/modules/rpm PackageHandler.cpp

CVSROOT:	/cvs/cluster
Module name:	conga
Branch: 	RHEL5
Changes by:	rmccabe 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.


--- conga/ricci/modules/rpm/PackageHandler.cpp	2007/03/01 00:31:20
+++ conga/ricci/modules/rpm/PackageHandler.cpp	2007/03/03 05:18:17
@@ -133,7 +133,7 @@
       line = utils::strip(line);
       vector<String> words = utils::split(line);
       vector<String>::size_type l = words.size();
-      if (l != 3)
+      if (l < 3)
       String name = words[0];
       String::size_type idx = name.rfind('.');

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]