From mboxrd@z Thu Jan 1 00:00:00 1970 From: kupcevic@sourceware.org Date: 11 Oct 2006 22:33:44 -0000 Subject: [Cluster-devel] conga/ricci/modules/rpm PackageHandler.cpp Message-ID: <20061011223344.22292.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 Changes by: kupcevic at sourceware.org 2006-10-11 22:33:43 Modified files: ricci/modules/rpm: PackageHandler.cpp Log message: rpm module: don't upgrade packages Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/rpm/PackageHandler.cpp.diff?cvsroot=cluster&r1=1.7&r2=1.8 --- conga/ricci/modules/rpm/PackageHandler.cpp 2006/10/06 03:10:13 1.7 +++ conga/ricci/modules/rpm/PackageHandler.cpp 2006/10/11 22:33:43 1.8 @@ -152,12 +152,12 @@ bool PackageInstaller::install(vector rpms) { - if (!available()) - return rpms.empty(); - if (rpms.empty()) return true; + //if (!available()) + // return rpms.empty(); + if (RHEL4) { String out, err; int status; @@ -213,6 +213,8 @@ if (status) return false; } + return true; + /* // update out = err = ""; args.clear(); @@ -225,7 +227,7 @@ if (utils::execute(YUM_PATH, args, out, err, status, false)) throw command_not_found_error_msg(YUM_PATH); return !status; - + */ } else return false; }